public ActionResult Edit(ClubEditModel editModel) { if (ModelState.IsValid) { var model = Mapper.Map <ClubEdit>(editModel); if (_clubService.Edit(model)) { return(RedirectToAction("Index")); } } return(View(editModel)); }
public ActionResult Edit(ClubEditModel editModel) { if (ModelState.IsValid) { var model = Mapper.Map <ClubEdit>(editModel); if (_clubService.Edit(model)) { return(RedirectToAction("Index")); } } return(View(editModel)); }