コード例 #1
0
        public IActionResult SearchRestaurantBasedOnDistance([FromBody] LocationDetails locationDetails)
        {
            IQueryable <RestaurantInformation> restaurantDetails;

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