Ejemplo n.º 1
0
 public ActionResult <FilteredList <PetType> > Get([FromQuery] Filter filter)
 {
     try
     {
         return(Ok(petTypeService.ReadAllTypes(filter)));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }