示例#1
0
 public async Task <ActionResult <IEnumerable <Categoria> > > GetCategoria()
 {
     try
     {
         return(new JsonResult(_contextoCategoria.GetAll()));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.InnerException.Message));
     }
 }