protected async void Form0Submit(RadzenCrm.Models.Crm.OpportunityStatus args) { try { var crmCreateOpportunityStatusResult = await Crm.CreateOpportunityStatus(opportunitystatus); DialogService.Close(opportunitystatus); } catch (Exception crmCreateOpportunityStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new OpportunityStatus!"); } }
protected async System.Threading.Tasks.Task Form0Submit(BlazorCrmWasm.Models.Crm.OpportunityStatus args) { try { var crmCreateOpportunityStatusResult = await Crm.CreateOpportunityStatus(opportunityStatus : opportunitystatus); DialogService.Close(opportunitystatus); } catch (System.Exception crmCreateOpportunityStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new OpportunityStatus!"); } }