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