コード例 #1
0
 public ActionResult <PetType> Get()
 {
     try
     {
         return(Ok(_petTypeService.getAllPetTypes()));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }