public ActionResult CreateHospital(HospitalModel hospital) { if (ModelState.IsValid) { _hospitalRepository.AddHospital(hospital); } else { return(View(hospital)); } return(RedirectToAction("HospitalsList")); }