public async Task <ActionResult> AddCustomerReview([FromBody] CustomerReview[] reviews)
        {
            await _customerReviewService.AddReviewAsync(reviews);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> AddReview([FromBody] ReviewRequest request)
        {
            await _customerReviewService.AddReviewAsync(WorkContext.CurrentUser.UserName, request);

            return(StatusCode((int)HttpStatusCode.NoContent));
        }