Exemple #1
0
        public IActionResult GetTrailById(double trailId)
        {
            Trail trailObj = trailFactory.GetTrailById(trailId).SingleOrDefault();

            ViewBag.Trail = trailObj;
            // ViewBag.Description=trailObj.Description;
            // ViewBag.Length=trailObj.Length;
            // ViewBag.Elevatiob=trailObj.Elevation;
            // ViewBag.Latitude=trailObj.Latitude;
            // ViewBag.Latitude=trailObj.Longitude;
            return(View("ShowTrailInfo"));
        }