public async Task <IActionResult> GetAllTrail()
 {
     return(Json(new
     {
         data = await _trailRepo.GetAllAsync(Static.TrailAPIPath, HttpContext.Session.GetString("JWToken"))
     }));
 }
示例#2
0
        public async Task <IActionResult> GetAllTrails()
        {
            var json = Json(new { data = await _tRepo.GetAllAsync(SD.TrailAPIPath) });

            //var data = await _npRepo.GetAllAsync(SD.NationalParkAPIPath);
            return(json);
        }
示例#3
0
        public async Task <IActionResult> GetAllTrails()
        {
            //WorkFlow

            var model = await _npTrail.GetAllAsync(SD.TrailAPIPath, HttpContext.Session.GetString("JWToken"));

            return(Json(new { data = model }));
        }
示例#4
0
 public async Task <IActionResult> GetAllTrails()
 {
     return(Json(new
     {
         data = await _trailRepo.GetAllAsync(StaticDetails.TrailsApiPath)
     }
                 ));
 }
示例#5
0
 public async Task <IActionResult> GetAllTrails()
 {
     return(Json(new
     {
         data = await _trails.GetAllAsync(Globals.ApiTrialUrl,
                                          HttpContext.Session.GetString("JWToken"))
     }));
 }
示例#6
0
        public async Task <IActionResult> Index()
        {
            IndexVM viewModel = new IndexVM()
            {
                NationalParks = await _npRepository.GetAllAsync(SD.NationalParkAPIPath, Token),
                Trails        = await _trailRepository.GetAllAsync(SD.TrailAPIPath, Token)
            };

            return(View(viewModel));
        }
示例#7
0
        public async Task <IActionResult> Index()
        {
            IndexVM listOfCampingParksAndTrails = new IndexVM()
            {
                CampingParkList = await _cpReo.GetAllAsync(StaticDetails.CampingParkAPIPath, HttpContext.Session.GetString("JWToken")),
                TrailList       = await _tRepo.GetAllAsync(StaticDetails.TrailAPIPath, HttpContext.Session.GetString("JWToken"))
            };

            return(View(listOfCampingParksAndTrails));
        }
        public async Task <IActionResult> Index()
        {
            var listOfAll = new Index_VM()
            {
                NationalParkList = await _nationalRepository.GetAllAsync(SD.NationalParkAPIPath),
                Trails           = await TrailRepository.GetAllAsync(SD.TrailAPIPath)
            };

            return(View(listOfAll));
        }
示例#9
0
        public async Task <IActionResult> Index()
        {
            HomeIndexViewModel listofParksAndTheirTrails = new HomeIndexViewModel()
            {
                NationalParks = await _nationalParkRepository.GetAllAsync(StaticDetails.NationalParkApiUrl),
                Trails        = await _trailRepository.GetAllAsync(StaticDetails.TrailsApiUrl)
            };

            return(View(listofParksAndTheirTrails));
        }
示例#10
0
        public async Task <IActionResult> Index()
        {
            IndexVM obj = new IndexVM()
            {
                NationalParksList = await nationalParkRepository.GetAllAsync(SD.NationalParkAPIUrl, HttpContext.Session.GetString("JWTToken")),
                Trails            = await trailRepository.GetAllAsync(SD.TrainAPIUrl, HttpContext.Session.GetString("JWTToken"))
            };

            return(View(obj));
        }
示例#11
0
        public async Task <IActionResult> Index()
        {
            var nationalParksAndTrails = new IndexVm
            {
                NationalParks = await _npRepo.GetAllAsync(StaticDetails.NationalParksApiPath),
                Trails        = await _trailRepo.GetAllAsync(StaticDetails.TrailsApiPath)
            };

            return(View(nationalParksAndTrails));
        }
示例#12
0
        public async Task <IActionResult> Index()
        {
            IndexVM listOfParksAndTrails = new IndexVM()
            {
                NationalParkList = await _npRepo.GetAllAsync(SD.NationalParkAPIPath, HttpContext.Session.GetString("JWToken")),
                TrailList        = await _trailRepo.GetAllAsync(SD.TrailAPIPath, HttpContext.Session.GetString("JWToken")),
            };

            return(View(listOfParksAndTrails));
        }
示例#13
0
        public async Task <IActionResult> Index()
        {
            IndexVM ListOfParkAndTrails = new IndexVM()
            {
                NationalParkList = await _npRepo.GetAllAsync(SD.NationalParkAPIPath),
                TrailList        = await _trailRepo.GetAllAsync(SD.TrailAPIPath)
            };

            return(View(ListOfParkAndTrails));
        }
示例#14
0
        public async Task <IActionResult> Index()
        {
            var index = new IndexViewModel()
            {
                Parks  = await _parks.GetAllAsync(Globals.ApiNpUrl, HttpContext.Session.GetString("JWToken")),
                Trails = await _trails.GetAllAsync(Globals.ApiTrialUrl, HttpContext.Session.GetString("JWToken"))
            };

            return(View(index));
        }
示例#15
0
        public async Task <IActionResult> Index()
        {
            var token = HttpContext.Session.GetString("JwToken");

            IndexVM indexVM = new IndexVM()
            {
                NationalParkList = await _npRepository.GetAllAsync(SD.NationalParkAPIPath, token),
                TrailList        = await _tRepository.GetAllAsync(SD.TrailAPIPath, token)
            };

            return(View(indexVM));
        }
示例#16
0
 public async Task <IActionResult> GetAllTrail()
 {
     return(Json(new { data = await _trailRepository.GetAllAsync(SD.TrailUrl, HttpContext.Session.GetString("JWToken")) }));
 }
示例#17
0
 public async Task <IActionResult> GetAllTrail()
 {
     return(Json(new { data = await _trailRepo.GetAllAsync(SD.TrailAPIPath) }));
 }
示例#18
0
 public async Task <IActionResult> GetAllTrails()
 {
     return(Json(new { data = await _trailRepository.GetAllAsync(SD.TrailAPIPath, Token) }));
 }
示例#19
0
        public async Task <IActionResult> GetAllTrail()
        {
            var token = HttpContext.Session.GetString("JwToken");

            return(Json(new { data = await _tRepository.GetAllAsync(SD.TrailAPIPath, token) }));
        }