protected async System.Threading.Tasks.Task Load() { var crmGetTaskByIdResult = await Crm.GetTaskById(id : Id); task = crmGetTaskByIdResult; var crmGetOpportunitiesResult = await Crm.GetOpportunities(); getOpportunitiesResult = crmGetOpportunitiesResult.Value.AsODataEnumerable(); var crmGetTaskTypesResult = await Crm.GetTaskTypes(); getTaskTypesResult = crmGetTaskTypesResult.Value.AsODataEnumerable(); var crmGetTaskStatusesResult = await Crm.GetTaskStatuses(); getTaskStatusesResult = crmGetTaskStatusesResult.Value.AsODataEnumerable(); }
protected async System.Threading.Tasks.Task Load() { canEdit = true; var crmGetTaskByIdResult = await Crm.GetTaskById(Id); task = crmGetTaskByIdResult; var crmGetOpportunitiesResult = await Crm.GetOpportunities(); getOpportunitiesResult = crmGetOpportunitiesResult; var crmGetTaskTypesResult = await Crm.GetTaskTypes(); getTaskTypesResult = crmGetTaskTypesResult; var crmGetTaskStatusesResult = await Crm.GetTaskStatuses(); getTaskStatusesResult = crmGetTaskStatusesResult; }
protected async void Load() { canEdit = true; var crmGetTaskByIdResult = await Crm.GetTaskById(int.Parse($"{Id}")); task = crmGetTaskByIdResult; var crmGetOpportunitiesResult = await Crm.GetOpportunities(); getOpportunitiesResult = crmGetOpportunitiesResult; var crmGetTaskTypesResult = await Crm.GetTaskTypes(); getTaskTypesResult = crmGetTaskTypesResult; var crmGetTaskStatusesResult = await Crm.GetTaskStatuses(); getTaskStatusesResult = crmGetTaskStatusesResult; }