Exemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            string token = HttpContext.Session.GetString("JWToken");
            HomeVM list  = new HomeVM()
            {
                UniversityList = await _dbUNI.GetAllAsync(SD.UniversityAPIPath, token),
                PathWayList    = await _dbPW.GetAllAsync(SD.PathWayAPIPath, token)
            };

            return(View(list));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetAll()
        {
            string token = HttpContext.Session.GetString("JWToken");

            return(Json(new { data = await _dbPW.GetAllAsync(_urlPW, token) }));
        }