示例#1
0
        private static async Task <List <Models.Recipe> > GetAllRecipes()
        {
            // DEMO: 01 - Run To
            List <Models.Recipe> recipes = new List <Recipe>();

            try
            {
                recipes = RecipeManager.GetAll();
            }
            catch (Exception ex)
            {
                Global.Singleton.AI.TrackException(ex);
                return(null);
            }
            // TODO: DEMO: 02 - Step Into Specific

            return(recipes);
        }
 private static List <Models.Recipe> GetAll(int NumberOfRecipes)
 {
     return(RecipeManager.GetAll(NumberOfRecipes));
 }
 private static List <Models.Recipe> GetAllRecipesByRating()
 {
     return(RecipeManager.GetAll());
 }