protected async System.Threading.Tasks.Task Load() { var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(id : Id); opportunity = crmGetOpportunityByIdResult; var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult.Value.AsODataEnumerable(); var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult.Value.AsODataEnumerable(); }
protected async void Load() { canEdit = true; var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(int.Parse($"{Id}")); opportunity = crmGetOpportunityByIdResult; var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult; }
protected async System.Threading.Tasks.Task Load() { canEdit = true; var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(Id); opportunity = crmGetOpportunityByIdResult; var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult; }