protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data)
        {
            try
            {
                var crmDeleteTaskStatusResult = await Crm.DeleteTaskStatus(id : data.Id);

                if (crmDeleteTaskStatusResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteTaskStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TaskStatus");
            }
        }
예제 #2
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, RadzenCrm.Models.Crm.TaskStatus data)
        {
            try
            {
                var crmDeleteTaskStatusResult = await Crm.DeleteTaskStatus(data.Id);

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