Exemplo n.º 1
0
        /// <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
                });
            }
        }