public ActionResult Create(Coach coach) { if (ModelState.IsValid) { coachRepository.InsertOrUpdate(coach); coachRepository.Save(); return(RedirectToAction("Index")); } else { return(View()); } }