コード例 #1
0
        public IActionResult SearchForRestaurantWithHigherRatingsFirst()
        {
            IQueryable <RestaurantInformation> restaurantDetails;

            restaurantDetails = business_Repo.SearchForRestaurantWithHigherRatingsFirst();
            if (restaurantDetails != null)
            {
                return(this.Ok(restaurantDetails));
            }
            return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty));
        }