protected void FillCollectorsList(CollectorDTO defaultCollector) { Collectors.SetItems(AppArgs.MarketState.Collectors.GetAll()); if (defaultCollector != null) { CurrentCollector = Collectors.SingleOrDefault(_ => _.Id == defaultCollector.Id); } ShowCollectors = true; }
public OtherColxnCrudVM(IOtherColxnsRepo repository, ITenantDBsDir appArguments) : base(repository, appArguments) { Collectors.SetItems(AppArgs.MarketState.Collectors?.GetAll()); GLAccounts.SetItems(AppArgs.MarketState.GLAccounts?.GetAll()); }