/// <summary>
        /// Load ingredients for custom pizza
        /// </summary>
        /// <returns></returns>
        private async Task LoadData()
        {
            await Global.ReloadArticlesAsync();

            var ingredientRepo = new Library.Repository.IngredientsRepository("Ingredients");

            foreach (var item in await ingredientRepo.GetAllAsync())
            {
                Ingredients.Add(new IngredientModel {
                    Name = item.Name, ID = item.ID, Price = item.Price
                });
            }
        }
Beispiel #2
0
 public static async Task <List <Ingredient> > getIngredients()
 {
     return((await ingredientsRepo.GetAllAsync()).ToList());
 }