// GET: Walks/Edit/5 public ActionResult Edit(int id) { Walk walk = _walkRepo.GetWalkById(id); if (walk == null) { return(NotFound()); } return(View(walk)); }
public IActionResult Detail(int id) { Walk walk = repository.GetWalkById(id); return(View(walk)); }
public Walk GetWalkById(int walkId) { return(_repo.GetWalkById(walkId)); }
// GET: WalkController/Details/5 public ActionResult Details(int id) { Walk walk = _walkRepo.GetWalkById(id); return(View(walk)); }