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)); }
public async Task <IActionResult> GetAllPatrimonios() { var model = await _npPatrimonio.GetAllAsync(SD.PatrimonioAPIPath, HttpContext.Session.GetString("JWToken")); return(Json(new { data = model })); }