Ejemplo n.º 1
0
 public async Task <CategoryWithProductCount> GetByIndexAndShop(int categoryId, int?shopId)
 {
     return(CategoryMapper.MapFromDAL(await Uow.Categories.GetByIndexAndShop(categoryId, shopId)));
 }
Ejemplo n.º 2
0
 public async Task <List <CategoryWithProductCount> > GetAllWithProductCountForShopAsync(int?shopId, string search, int?pageIndex, int?pageSize)
 {
     return((await Uow.Categories.GetAllWithProductCountForShopAsync(shopId, search, pageIndex, pageSize))
            .Select(e => CategoryMapper.MapFromDAL(e)).ToList());
 }
Ejemplo n.º 3
0
 public override async Task <Category> FindAsync(params object[] id)
 {
     return(CategoryMapper.MapFromDAL(await Uow.Categories.FindAsync(id)));
 }
Ejemplo n.º 4
0
        public async Task <List <Category> > AllAsync(string order, string searchFor, int?pageIndex, int?pageSize)
        {
            var res = (await Uow.Categories.AllAsync(order, searchFor, pageIndex, pageSize)).Select(e => CategoryMapper.MapFromDAL(e)).ToList();

            return(res);
        }
Ejemplo n.º 5
0
 public override async Task <List <Category> > AllAsync()
 {
     return((await Uow.Categories.AllAsync()).Select(e => CategoryMapper.MapFromDAL(e)).ToList());
 }