public ActionResult <PetType> Put(int id, [FromBody] PetType petType) { try { return(StatusCode(202, _petTypeService.UploadPetTypeByID(id, petType))); } catch (Exception e) { return(StatusCode(500, e.Message)); } }