Exemple #1
0
        async Task ExecuteAddCoffeesCommandAsync()
        {
            if (IsBusy)
            {
                return;
            }

            try
            {
                IsBusy = true;
                //Add a Coffee

                var coffee = await azureService.AddCoffee();

                Coffees.Add(coffee);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
            finally
            {
                IsBusy = false;
            }
        }