public IActionResult UpdatePet([FromRoute] Guid petId, [FromBody] GeneralPetRequest request) { var petDto = request.Map(); petDto.Id = petId; _petsRepository.UpdatePet(petDto); return(Ok()); }
public IActionResult PostPet([FromBody] GeneralPetRequest request) { var newPet = request.Map(); var petId = _petsRepository.AddPet(newPet); var response = new { PetId = petId }; return(Ok(response)); }