public async Task <ActionResult> EditDog([FromRoute] long dogId, [FromBody] DogDTO dogDTO) { if (ModelState.IsValid) { await dogService.EditDogAsync(dogDTO, dogId); return(Ok()); } return(BadRequest()); }