Esempio n. 1
0
 public async Task <ShipperWithOrderCount> FindByIdAsyncDTO(int id)
 {
     return(ShipperMapper.MapFromDAL(await Uow.Shippers.FindByIdAsyncDTO(id)));
 }
Esempio n. 2
0
 public async Task <List <Shipper> > AllAsync(string order, string searchFor, int?pageIndex, int?pageSize)
 {
     return((await Uow.Shippers.AllAsync(order, searchFor, pageIndex, pageSize)).Select(e => ShipperMapper.MapFromDAL(e)).ToList());
 }
Esempio n. 3
0
        /*public async Task<IEnumerable<ShipperDTO>> GetAllWithOrdersCountByShopAsync(int? shopId)
         * {
         *  return await UOW.Shippers.GetAllWithOrdersCountByShopAsync(shopId);
         * }
         *
         * public async Task<ShipperDTO> FindByIdAsyncDTO(int id)
         * {
         *  return await UOW.Shippers.FindByIdAsyncDTO(id);
         * }*/

        public async Task <List <ShipperWithOrderCount> > GetAllWithOrdersCountByShopAsync(int?shopId, string search, int?pageIndex, int?pageSize)
        {
            return((await Uow.Shippers.GetAllWithOrdersCountByShopAsync(shopId, search, pageIndex, pageSize))
                   .Select(e => ShipperMapper.MapFromDAL(e)).ToList());
        }