Exemplo n.º 1
0
        protected async Task DeleteNotificationChannel(int id)
        {
            bool?result = await DialogService.Confirm("Are you sure?", "DELETE NOTIFICATION CHANNEL", new ConfirmOptions()
            {
                OkButtonText = "Yes", CancelButtonText = "No", ShowClose = false
            });

            if (result.Value == true)
            {
                var deletedNotification = await NotificationChannelService.DeleteAsync(id);

                if (deletedNotification > 0)
                {
                }
                else
                {
                }
            }
        }