Exemplo n.º 1
0
 // GET: Classes/Create
 public IActionResult Create()
 {
     ViewData["Grades"] = new SelectList(_gradeSvc.GetAllAsync().Result.Data, "Id", "Name");
     return View();
 }
Exemplo n.º 2
0
        [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());
        }