예제 #1
0
 public IActionResult CreateDepartment(Department newDepartment)
 {
     if (ModelState.IsValid)
     {
         _DepartmentData.AddNewDepartment(newDepartment);
         return(RedirectToAction("Index"));
     }
     return(View());
 }