예제 #1
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, RadzenCrm.Models.Crm.TaskType data)
        {
            try
            {
                var crmDeleteTaskTypeResult = await Crm.DeleteTaskType(data.Id);

                if (crmDeleteTaskTypeResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteTaskTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TaskType");
            }
        }
예제 #2
0
        protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data)
        {
            try
            {
                var crmDeleteTaskTypeResult = await Crm.DeleteTaskType(id : data.Id);

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