public IActionResult UpdateResturantRating(int ID, [FromBody] RestaurantRating restaurantRating) { if ((!ModelState.IsValid) || ID <= 0) { return(this.BadRequest()); } if (business_Repo.UpdateRestaurantRating(ID, restaurantRating)) { return(this.Ok("Updated the reviewes")); } else { return(this.StatusCode((int)HttpStatusCode.InternalServerError, "Unable to process request.")); } }