Example #1
0
 public ActionResult <PetType> Put(int id, [FromBody] PetType pettype)
 {
     try
     {
         return(Accepted(petTypeService.updatePet(id, pettype)));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }