protected async void Load() { var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; contactFilter = ""; }
protected async System.Threading.Tasks.Task Load() { var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; contactFilter = ""; }
protected async void Button1Click(MouseEventArgs args) { var crmGetContactsResult = await Crm.GetContacts(new Query() { Filter = $@"i => i.Email.Contains(""{contactFilter}"") || i.Company.Contains(""{contactFilter}"") || i.FirstName.Contains(""{contactFilter}"") || i.LastName.Contains(""{contactFilter}"")" }); getContactsResult = crmGetContactsResult; }
protected async System.Threading.Tasks.Task Load() { var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult; opportunity = new RadzenCrm.Models.Crm.Opportunity(); }
protected async void Load() { var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult; var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult; opportunity = new RadzenCrm.Models.Crm.Opportunity(); }
protected async System.Threading.Tasks.Task Load() { var crmGetContactsResult = await Crm.GetContacts(); getContactsResult = crmGetContactsResult.Value.AsODataEnumerable(); var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses(); getOpportunityStatusesResult = crmGetOpportunityStatusesResult.Value.AsODataEnumerable(); opportunity = new BlazorCrmWasm.Models.Crm.Opportunity() { }; }
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 System.Threading.Tasks.Task Grid0LoadData(LoadDataArgs args) { try { var crmGetContactsResult = await Crm.GetContacts(filter : $@"contains(Email,""{contactFilter}"") or contains(Company,""{contactFilter}"") or contains(FirstName,""{contactFilter}"") or contains(LastName,""{contactFilter}"")", orderby : $@"{args.OrderBy}", top : args.Top, skip : args.Skip, count : args.Top != null && args.Skip != null); getContactsResult = crmGetContactsResult.Value.AsODataEnumerable(); getContactsCount = crmGetContactsResult.Count; } catch (Exception crmGetContactsException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to load Contacts"); } }
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; }