public IActionResult PostResturantReview([FromBody] RestaurantReview restaurantReview)
        {
            var result = _restaurantBusiness.PostResturantReview(restaurantReview);

            if (result != null)
            {
                return(Ok(result));
            }
            else
            {
                return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty));
            }
        }
Exemple #2
0
 public IActionResult PostResturantReview([FromBody] RestaurantReview restaurantReview)
 {
     _restaurantBusiness.PostResturantReview(restaurantReview);
     return(Ok());
 }