Example #1
0
 public async Task <List <Inventory> > AllAsync(string order, string searchFor, int?pageIndex, int?pageSize)
 {
     return((await Uow.Inventories.AllAsync(order, searchFor, pageIndex, pageSize)).Select(e => InventoryMapper.MapFromDAL(e)).ToList());
 }
Example #2
0
 public async Task <InventoryWithProductCount> FindByShopAsyncAndIdAsync(int id, int?shopId)
 {
     return(InventoryMapper.MapFromDAL(await Uow.Inventories.FindByShopAsyncAndIdAsync(id, shopId)));
 }
Example #3
0
 public override async Task <Inventory> FindAsync(params object[] id)
 {
     return(InventoryMapper.MapFromDAL(await Uow.Inventories.FindAsync(id)));
 }
Example #4
0
 public async Task <List <InventoryWithProductCount> > GetByShopAsync(int?shopId, string search, int?pageIndex, int?pageSize)
 {
     return((await Uow.Inventories.GetByShopAsync(shopId, search, pageIndex, pageSize)).Select(e => InventoryMapper.MapFromDAL(e)).ToList());
 }
Example #5
0
 public override async Task <List <Inventory> > AllAsync()
 {
     return((await Uow.Inventories.AllAsync()).Select(e => InventoryMapper.MapFromDAL(e)).ToList());
 }