private void loadTerms(UniqueEntityView item) { Terms.Clear(); if (item is null) { return; } terms.FixedFilter = GetMember.Name <UnitTermData>(x => x.MasterId); terms.FixedValue = item.Id; var list = terms.Get().GetAwaiter().GetResult(); foreach (var e in list) { Terms.Add(UnitTermViewFactory.Create(e)); } }
private void loadFactors(UniqueEntityView item) { Factors.Clear(); if (item is null) { return; } factors.FixedFilter = GetMember.Name <UnitFactorData>(x => x.UnitId); factors.FixedValue = item.Id; var list = factors.Get().GetAwaiter().GetResult(); foreach (var e in list) { Factors.Add(UnitFactorViewFactory.Create(e)); } }