private static List <Models.Recipe> GetRecipeByName(string name)
        {
            List <Models.Recipe> recipes = new List <Recipe>();

            try
            {
                recipes = RecipeManager.GetAllByName(name);
            }
            catch (Exception ex)
            {
                return(null);
            }
            // DEMO: Tracepoints ($FUNCTION {response.Data.Count} matches), show parameter values in the Call Stack
            return(recipes);
        }
Beispiel #2
0
        private static async Task <List <Models.Recipe> > GetRecipeByName(string name)
        {
            List <Models.Recipe> recipes = new List <Recipe>();

            try
            {
                recipes = RecipeManager.GetAllByName(name);
            }
            catch (Exception ex)
            {
                Global.Singleton.AI.TrackException(ex);
                return(null);
            }
            // DEMO: 03 - Tracepoints ($FUNCTION {response.Data.Count} matches), show parameter values in the Call Stack
            return(recipes);
        }
        private static List <Models.Recipe> GetRecipeByName(string name)
        {
            List <Models.Recipe> recipes = new List <Recipe>();

            try
            {
                recipes = RecipeManager.GetAllByName(name);

                // DEMO: Step Into Specific
                string title = GetFancyName(GetRandom(recipes).Title.ToUpper());
            }
            catch (Exception ex)
            {
                return(null);
            }
            return(recipes);
        }