public IActionResult Show(int id)
        {
            var trail = trailFactory.FindByID(id);

            ViewBag.Trail = trail.Name;
            return(View());
        }
Beispiel #2
0
        public IActionResult ShowTrail(long Trail_Id)
        {
            Trail trail = trailFactory.FindByID(Trail_Id);

            ViewBag.Trail = trail;
            return(View());
        }
Beispiel #3
0
        public IActionResult Trail(int id)
        {
            Trail res = trailFactory.FindByID(id);

            ViewBag.trail = res;
            return(View());
        }
Beispiel #4
0
        public IActionResult ShowTrail(int id)
        {
            Trail DisplayTrail = new Trail();

            DisplayTrail = trailFactory.FindByID(id);
            return(View(DisplayTrail));
        }
Beispiel #5
0
 public IActionResult Trails(int id)
 {
     if (ModelState.IsValid)
     {
         ViewBag.Trails = trailFactory.FindByID(id);
     }
     return(View());
 }
Beispiel #6
0
        public IActionResult Show(int trail_id)
        {
            Trail trail = trailFactory.FindByID(trail_id);

            ViewBag.Trail = trail;
            float longitude = ViewBag.Trail.longitude;

            return(View("Show", trail));
        }
Beispiel #7
0
        public IActionResult Trail(int id)
        {
            if (tr == null)
            {
                tr = new TrailFactory();
            }
            Trail found = tr.FindByID(id);

            ViewBag.Trail = found;
            return(View());
        }
 public IActionResult Trail(int id)
 {
     ViewBag.Trail = trailFactory.FindByID(id);
     return(View());
 }
Beispiel #9
0
        public IActionResult Show(int trail_id)
        {
            Trail Trail = _TrailFactory.FindByID(trail_id);

            return(View(Trail));
        }
 public IActionResult Show(int id)
 {
     // System.Console.WriteLine(ViewBagid);
     ViewBag.dog = _trailFactory.FindByID(id);
     return(View());
 }
Beispiel #11
0
 public IActionResult viewTrail(int id)
 {
     ViewBag.trail = trailFactory.FindByID(id);
     return(View("Trail"));
 }
Beispiel #12
0
        public IActionResult Trails(int id)
        {
            TrailInfo trailInfo = trailFactory.FindByID(id);

            return(View(trailInfo));
        }
Beispiel #13
0
 public IActionResult CreateTrail(int trailID)
 {
     ViewBag.Trails = trailFactory.FindByID(trailID);
     return(View("Trail"));
 }
 public IActionResult ShowTrail(int id)
 {
     ViewBag.trail = trailFactory.FindByID(id);
     return(View("showtrail", id));
 }
 public IActionResult Show()//refactored from original Contact
 {
     ViewData["Message"] = "Description of this trail";
     ViewBag.dog         = trailFactory.FindByID(id);
     return(View());
 }
Beispiel #16
0
 public IActionResult addTrail(int Id)
 {
     ViewBag.UniqueTrail = trailFactory.FindByID(Id);
     return(View("trail"));
 }
 public IActionResult TrailInfo(int Id)
 {
     ViewBag.trail = trailFactory.FindByID(Id);
     return(View());
 }
Beispiel #18
0
 public IActionResult ShowTrail(string id)
 {
     ViewBag.Trails = trailFactory.FindByID(Int32.Parse(id));
     return(View());
 }
Beispiel #19
0
 public IActionResult seeTrail(int id)
 {
     ViewBag.currentTrail = trailFactory.FindByID(id);
     return(View("trails"));
 }
Beispiel #20
0
 public IActionResult Show(long id)
 {
     ViewBag.trail = trailFactory.FindByID(id);
     return(View());
 }
Beispiel #21
0
        public IActionResult Show(int id)
        {
            ViewBag.Trail = trailFactory.FindByID(id);

            return(View("show"));
        }
Beispiel #22
0
 public IActionResult Get_Trail(int trail_id)
 {
     ViewBag.Trail = trailFactory.FindByID(trail_id);
     return(View());
 }
Beispiel #23
0
 public IActionResult Detail(int id)
 {
     return(View(_TrailFactory.FindByID(id)));
 }