예제 #1
0
        public IActionResult Trail(int id)
        {
            var trail = _trailFactory.FindById(id);

            if (trail == null)
            {
                return(RedirectToAction("Index"));
            }
            return(View("trail", trail));
        }
예제 #2
0
        public IActionResult Trails(int Id)
        {
            var trailToDisplay = _trailFactory.FindById(Id);

            return(View(trailToDisplay));
        }
예제 #3
0
 public IActionResult viewTrail(int id)
 {
     ViewBag.trail = trailFactory.FindById(id);
     return(View("Trail"));
 }