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