Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> GetBusinesses(YelpRequest req)
        {
            //object test = Request.Content;
            return(await _yelpService.GetBusinesses(req));

            //return Request.CreateResponse(HttpStatusCode.OK, response);
        }
Ejemplo n.º 2
0
        public async Task <HttpResponseMessage> GetBusinesses(int id)
        {
            YelpRequest settings = _settingsService.SearchById(id);

            if (settings.CurrentLocation == false)
            {
                return(await _yelpService.GetBusinesses(settings));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.OK, "Current Location Required"));
            }
        }
Ejemplo n.º 3
0
        public Task <YelpBusinesses> GetBusinesses(string location, string type)
        {
            var yelpResult = _yelp.GetBusinesses(location, type);

            return(yelpResult);
        }