protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data) { try { var crmDeleteContactResult = await Crm.DeleteContact(id : data.Id); if (crmDeleteContactResult != null) { grid0.Reload(); } } catch (Exception crmDeleteContactException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Contact"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, RadzenCrm.Models.Crm.Contact data) { try { var crmDeleteContactResult = await Crm.DeleteContact(data.Id); if (crmDeleteContactResult != null) { grid0.Reload(); } } catch (Exception crmDeleteContactException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Contact"); } }