コード例 #1
0
 public IActionResult Create(DeptViewModel model)
 {
     if (ModelState.IsValid)
     {
         deptManager.Create(model);
     }
     return(RedirectToAction(nameof(Index)));
 }