Esempio n. 1
0
        public IActionResult PutResturantReview([FromBody] RestaurantReview restaurantReview)
        {
            var result = _restaurantBusiness.EditResturantReview(restaurantReview);

            if (result == true)
            {
                return(Ok(restaurantReview));
            }
            else if (result == false)
            {
                return(this.StatusCode((int)HttpStatusCode.NoContent, "Please provide proper customer and resturant Combination"));
            }
            else
            {
                return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty));
            }
        }