Exemple #1
0
        public async Task <IActionResult> Index()
        {
            IndexVM model = new IndexVM()
            {
                MarcaList      = await _npRepo.GetAllAsync(SD.MarcaAPIPath, HttpContext.Session.GetString("JWToken")),
                PatrimonioList = await _npTrail.GetAllAsync(SD.PatrimonioAPIPath, HttpContext.Session.GetString("JWToken"))
            };

            return(View(model));
        }
Exemple #2
0
        public async Task <IActionResult> GetAllPatrimonios()
        {
            var model = await _npPatrimonio.GetAllAsync(SD.PatrimonioAPIPath, HttpContext.Session.GetString("JWToken"));

            return(Json(new { data = model }));
        }