Ejemplo n.º 1
0
        protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data)
        {
            try
            {
                var crmDeleteTaskResult = await Crm.DeleteTask(id : data.Id);

                if (crmDeleteTaskResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteTaskException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Task");
            }
        }
Ejemplo n.º 2
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, RadzenCrm.Models.Crm.Task data)
        {
            try
            {
                var crmDeleteTaskResult = await Crm.DeleteTask(data.Id);

                if (crmDeleteTaskResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteTaskException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Task");
            }
        }