Esempio n. 1
0
 public ActionResult Create(Department department)
 {
     if (ModelState.IsValid)
     {
         _buisnessLogicClass.CreateNewDepartment(department);
         return(RedirectToAction(nameof(Index)));
     }
     else
     {
         return(BadRequest());
     }
 }