public IActionResult GetPets()
        {
            var allPets = _petProvider.GetPets();
            var result  = new
            {
                Total = allPets.Count
            };

            return(Ok(result));
        }
Beispiel #2
0
 public ActionResult <IEnumerable <Pet> > Get()
 {
     return(_provider.GetPets());
 }