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