public IActionResult Trail(int id) { var trail = _trailFactory.FindById(id); if (trail == null) { return(RedirectToAction("Index")); } return(View("trail", trail)); }
public IActionResult Trails(int Id) { var trailToDisplay = _trailFactory.FindById(Id); return(View(trailToDisplay)); }
public IActionResult viewTrail(int id) { ViewBag.trail = trailFactory.FindById(id); return(View("Trail")); }