Exemple #1
0
        async Task AddData()
        {
            IsBusy = true;
            var dish = new Dish
            {
                Name        = $"Ensalada Fantasia ({DateTime.Now:T})",
                Description = "Salat aus allen Zutaten, die noch übrig waren",
                Price       = 1.99,
                CategoryId  = 1
            };
            await _db.SaveDishAsync(dish);

            IsBusy = false;
        }