public ActionResult Create(CrudModel crudModel) { if (!ModelState.IsValid) { return(View(crudModel)); } crudRepo.AddPerson(crudModel); return(RedirectToAction("Index")); }