Example #1
0
 public ActionResult <PetType> Get(int id)
 {
     try
     {
         return(_petTypeService.FindPetTypeByIdwithPets(id));
         ////FindPetTypeById(id);
     }
     catch (Exception e)
     {
         return(NotFound(e.Message));
     }
 }