Beispiel #1
0
        private async Task DeleteTaskAsync()
        {
            IsBusy = true;

            try
            {
                var deletionResult = await _tasksService.DeleteTaskAsync(_taskId);

                if (!deletionResult.IsSuccess)
                {
                    ShowToast(deletionResult.GetFullMessage());
                    return;
                }

                TaskDeleted?.Invoke(this, EventArgs.Empty);
            }
            finally
            {
                IsBusy = false;
            }
        }