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