Example #1
0
        // GET: Walks/Edit/5
        public ActionResult Edit(int id)
        {
            Walk walk = _walkRepo.GetWalkById(id);

            if (walk == null)
            {
                return(NotFound());
            }

            return(View(walk));
        }
Example #2
0
        public IActionResult Detail(int id)
        {
            Walk walk = repository.GetWalkById(id);

            return(View(walk));
        }
Example #3
0
 public Walk GetWalkById(int walkId)
 {
     return(_repo.GetWalkById(walkId));
 }
Example #4
0
        // GET: WalkController/Details/5
        public ActionResult Details(int id)
        {
            Walk walk = _walkRepo.GetWalkById(id);

            return(View(walk));
        }