public IActionResult Index()
        {
            IEnumerable <Trail> AllTrails = _trailFactory.ShowAll();

            foreach (var i in AllTrails)
            {
                System.Console.WriteLine(i.Id);
            }
            ViewBag.trail = AllTrails;
            return(View());
        }
Example #2
0
 public IActionResult Index()
 {
     ViewBag.allTrails = trailFactory.ShowAll();
     return(View());
 }