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)); } }
public IActionResult PostResturantReview([FromBody] RestaurantReview restaurantReview) { _restaurantBusiness.PostResturantReview(restaurantReview); return(Ok()); }