protected async System.Threading.Tasks.Task Form0Submit(BlazorCrmWasm.Models.Crm.Opportunity args) { try { var crmUpdateOpportunityResult = await Crm.UpdateOpportunity(id : Id, opportunity : opportunity); DialogService.Close(opportunity); } catch (System.Exception crmUpdateOpportunityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Opportunity"); } }
protected async void Form0Submit(RadzenCrm.Models.Crm.Opportunity args) { try { var crmUpdateOpportunityResult = await Crm.UpdateOpportunity(int.Parse($"{Id}"), opportunity); DialogService.Close(opportunity); } catch (Exception crmUpdateOpportunityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Opportunity"); } }