public ActionResult <Pet> Put(int id, [FromBody] Pet pet) { try { pet.id = id; return(_petShopService.UpdatePetInfoServ(pet)); } catch (Exception e) { return(BadRequest(e.Message)); } }