public async Task <ActionResult> AddDog([FromRoute] string userId, [FromBody] DogDTO dogDTO) { if (ModelState.IsValid) { await dogService.AddDogAsync(dogDTO, userId); return(Ok()); } return(BadRequest()); }
public async Task <IActionResult> AddDog([FromBody] Dog dog) { await dogsService.AddDogAsync(dog); return(Ok()); }