// GET: Classes/Create public IActionResult Create() { ViewData["Grades"] = new SelectList(_gradeSvc.GetAllAsync().Result.Data, "Id", "Name"); return View(); }
[ResponseCache(VaryByHeader = "User-Agent", Duration = 3600, Location = ResponseCacheLocation.Any)]//TODO:ver cache public async Task <IActionResult> Get() { var response = await _gradeSvc.GetAllAsync(); return(response.ToHttpResponse()); }