public IActionResult GetResturantRating([FromQuery] int RestaurantID) { IQueryable <RestaurantRating> restaurantRatings; restaurantRatings = business_Repo.GetRestaurantRating(RestaurantID); if (restaurantRatings != null) { return(this.Ok(restaurantRatings)); } return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty)); }