public ActionResult CreateAgency(AgencyModel agency) { if (ModelState.IsValid) { _agencyRepository.AddAgency(agency); return(RedirectToAction("AgenciesList")); } else { return(View(agency)); } }