public async Task <IActionResult> GetAllTrail() { return(Json(new { data = await _trailRepo.GetAllAsync(Static.TrailAPIPath, HttpContext.Session.GetString("JWToken")) })); }
public async Task <IActionResult> GetAllTrails() { var json = Json(new { data = await _tRepo.GetAllAsync(SD.TrailAPIPath) }); //var data = await _npRepo.GetAllAsync(SD.NationalParkAPIPath); return(json); }
public async Task <IActionResult> GetAllTrails() { //WorkFlow var model = await _npTrail.GetAllAsync(SD.TrailAPIPath, HttpContext.Session.GetString("JWToken")); return(Json(new { data = model })); }
public async Task <IActionResult> GetAllTrails() { return(Json(new { data = await _trailRepo.GetAllAsync(StaticDetails.TrailsApiPath) } )); }
public async Task <IActionResult> GetAllTrails() { return(Json(new { data = await _trails.GetAllAsync(Globals.ApiTrialUrl, HttpContext.Session.GetString("JWToken")) })); }
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)); }
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)); }
public async Task <IActionResult> Index() { HomeIndexViewModel listofParksAndTheirTrails = new HomeIndexViewModel() { NationalParks = await _nationalParkRepository.GetAllAsync(StaticDetails.NationalParkApiUrl), Trails = await _trailRepository.GetAllAsync(StaticDetails.TrailsApiUrl) }; return(View(listofParksAndTheirTrails)); }
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)); }
public async Task <IActionResult> Index() { var nationalParksAndTrails = new IndexVm { NationalParks = await _npRepo.GetAllAsync(StaticDetails.NationalParksApiPath), Trails = await _trailRepo.GetAllAsync(StaticDetails.TrailsApiPath) }; return(View(nationalParksAndTrails)); }
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)); }
public async Task <IActionResult> Index() { IndexVM ListOfParkAndTrails = new IndexVM() { NationalParkList = await _npRepo.GetAllAsync(SD.NationalParkAPIPath), TrailList = await _trailRepo.GetAllAsync(SD.TrailAPIPath) }; return(View(ListOfParkAndTrails)); }
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)); }
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)); }
public async Task <IActionResult> GetAllTrail() { return(Json(new { data = await _trailRepository.GetAllAsync(SD.TrailUrl, HttpContext.Session.GetString("JWToken")) })); }
public async Task <IActionResult> GetAllTrail() { return(Json(new { data = await _trailRepo.GetAllAsync(SD.TrailAPIPath) })); }
public async Task <IActionResult> GetAllTrails() { return(Json(new { data = await _trailRepository.GetAllAsync(SD.TrailAPIPath, Token) })); }
public async Task <IActionResult> GetAllTrail() { var token = HttpContext.Session.GetString("JwToken"); return(Json(new { data = await _tRepository.GetAllAsync(SD.TrailAPIPath, token) })); }