public IActionResult GetResturantReviews([FromQuery] int ResturantId, int custumorid) { RestaurantReviewParams restaurantReviewParams = new RestaurantReviewParams { RestaurantID = ResturantId, CustomerID = custumorid }; var result = _restaurantBusiness.GetResturantReviews(restaurantReviewParams); if (result != null) { return(Ok(result)); } else if (result.Count == 0) { return(NotFound((int)HttpStatusCode.NotFound)); } else { return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty)); } }
public IActionResult GetResturantReviews([FromBody] RestaurantReviewParams restaurantReviewParams) { _restaurantBusiness.GetResturantReviews(restaurantReviewParams); return(Ok()); }