public ActionResult Edit(int id, Walker walker) { try { _walkerRepo.UpdateWalker(walker); return(RedirectToAction(nameof(Index))); } catch { return(View(walker)); } }
public ActionResult Edit(int id, Walker walker) { try { _walkerRepo.UpdateWalker(walker); return(RedirectToAction("Index")); } catch (Exception ex) { return(View(walker)); } }