Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public async Task <List <Supplier> > GetListAsync(Expression <Func <Supplier, bool> > expression = null)
 {
     return(await(await _supplierDal.GetListAsync(expression)).ToListAsync());
 }