public IEnumerable <Recipe> GetRecipeById(int Id) { if (Id.Equals(0)) { return(GetAllRecipes()); } else { string response = ServiceInvoker.GetServiceResults("http://localhost:8000/api/Recipes/" + Id); return(GenerateRecipesList(response)); } }
public IEnumerable <Recipe> GetAllRecipes() { string response = ServiceInvoker.GetServiceResults("http://localhost:8000/api/Recipes"); return(GenerateRecipesList(response)); }