Exemple #1
0
        public static List <Food> GetCustomFood(string filepath)
        {
            if (!File.Exists(filepath))
            {
                List <Food> newFoods = new List <Food>();
                JsonFunctions.WriteJSON(newFoods, filepath);
                return(newFoods);
            }

            return(JsonFunctions.ReadFoodJSON(filepath));
        }