Exemplo n.º 1
0
 public ActionResult <Pet> Post([FromBody] Pet pet)
 {
     try
     {
         return(_petShopService.CreateNewPetServ(pet));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }