public IActionResult Create(DeptViewModel model) { if (ModelState.IsValid) { deptManager.Create(model); } return(RedirectToAction(nameof(Index))); }