Esempio n. 1
0
        public List <Recipe> RecipeSearch(string token, SearchRecipesCriteria criteria)
        {
            RestRequest request = BuildRequest("/Recipe/Search", Method.POST, token);

            request.AddJsonBody(criteria);
            IRestResponse response = _client.Execute(request);

            if (response.StatusCode == HttpStatusCode.OK)
            {
                return(JsonConvert.DeserializeObject <List <Recipe> >(response.Content));
            }

            throw new ApplicationException("Unable to search for recipes from server: " + response.Content, response.ErrorException);
        }
Esempio n. 2
0
 public List <Recipe> RecipeSearch(string token, SearchRecipesCriteria criteria)
 {
     throw new NotImplementedException();
 }
 public List <Recipe> RecipeSearch(string token, SearchRecipesCriteria criteria)
 {
     return(_backingProvider.RecipeSearch(token, criteria));
 }