public async Task <ShipperWithOrderCount> FindByIdAsyncDTO(int id) { return(ShipperMapper.MapFromDAL(await Uow.Shippers.FindByIdAsyncDTO(id))); }
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()); }
/*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()); }