public async Task FillLookups() { Task <List <Territory> > t = territoryActions.GetAll(); Task <List <CustomerGroup> > c = customerGroupActions.GetAll(); this.territories = await t; this.customerGroups = await c; this.customerTypes = customerTypeActions.GetAll(); }
public async Task FillLookups() { Task <List <FiscalYear> > t = fiscalYearActions.GetAll(); Task <List <Customer> > c = customerActions.GetAll(); Task <List <PriceList> > p = priceListActions.GetAllFiltered(enum_buying_or_selling.Selling); this.FiscalYears = await t; this.customers = await c; this.priceLists = await p; }