Example #1
0
 public ActionResult <Pettype> Get(int id)
 {
     try
     {
         return(StatusCode(200, _petTypeService.FindTypeById(id)));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }