public async Task <HttpResponseMessage> GetOutletReview(int id) { var message = CreateMessageData($"Outlet/{id}", new KeyValuePair <string, string>("outletID", id.ToString())); var review = await _outletService.GetOutletReview(id); if (!review.IsSuccess) { return(CreateValidationErrorResponse(message, new ValidationResult(review.message))); } if (review.Result == null) { return(CreateNotFoundResponse(message, Validation.FileNotFound)); } return(CreateOkResponse(message, review.Result)); }