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