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()); }
public async Task <InventoryWithProductCount> FindByShopAsyncAndIdAsync(int id, int?shopId) { return(InventoryMapper.MapFromDAL(await Uow.Inventories.FindByShopAsyncAndIdAsync(id, shopId))); }
public override async Task <Inventory> FindAsync(params object[] id) { return(InventoryMapper.MapFromDAL(await Uow.Inventories.FindAsync(id))); }
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()); }
public override async Task <List <Inventory> > AllAsync() { return((await Uow.Inventories.AllAsync()).Select(e => InventoryMapper.MapFromDAL(e)).ToList()); }