public ActionResult Update(int id, [FromBody] InputDtoUpdateReview inputDtoUpdateReview) { if (_reviewService.Update(id, inputDtoUpdateReview)) { return(Ok()); } return(NotFound()); }
public bool Update(int id, InputDtoUpdateReview inputDtoUpdateReview) { var reviewFromDto = new Review { Stars = inputDtoUpdateReview.Stars, DescriptionReview = inputDtoUpdateReview.DescriptionReview }; return(_reviewRepository.Update(id, reviewFromDto)); }