public IActionResult AddDepartment(Department department) { if (ModelState.IsValid) { DepartmentData.AddDepartment(department); return(RedirectToAction("DepartmentList")); } return(View(department)); }