예제 #1
0
        public ActionResult Update(int id, [FromBody] InputDtoUpdateReview inputDtoUpdateReview)
        {
            if (_reviewService.Update(id, inputDtoUpdateReview))
            {
                return(Ok());
            }

            return(NotFound());
        }
예제 #2
0
        public bool Update(int id, InputDtoUpdateReview inputDtoUpdateReview)
        {
            var reviewFromDto = new Review
            {
                Stars = inputDtoUpdateReview.Stars, DescriptionReview = inputDtoUpdateReview.DescriptionReview
            };

            return(_reviewRepository.Update(id, reviewFromDto));
        }