public async Task <ActionResult> AddCustomerReview([FromBody] CustomerReview[] reviews) { await _customerReviewService.AddReviewAsync(reviews); return(Ok()); }
public async Task <IActionResult> AddReview([FromBody] ReviewRequest request) { await _customerReviewService.AddReviewAsync(WorkContext.CurrentUser.UserName, request); return(StatusCode((int)HttpStatusCode.NoContent)); }