public IActionResult GetPets() { var allPets = _petProvider.GetPets(); var result = new { Total = allPets.Count }; return(Ok(result)); }
public ActionResult <IEnumerable <Pet> > Get() { return(_provider.GetPets()); }