예제 #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");
            }
        }
예제 #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");
            }
        }