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