public async Task StartReocganizationAsync() { var products = await(await _productDAL.GetListAsync()).ToListAsync(); var categories = await(await _categoryDAL.GetListAsync()).ToListAsync(); var supplieers = await(await _supplierDAL.GetListAsync()).ToListAsync(); await _elasticSearchService.CreateAllIndexes(products, categories, supplieers); }
public async Task <List <Supplier> > GetListAsync(Expression <Func <Supplier, bool> > expression = null) { return(await(await _supplierDal.GetListAsync(expression)).ToListAsync()); }