public async Task <CategoryWithProductCount> GetByIndexAndShop(int categoryId, int?shopId) { return(CategoryMapper.MapFromDAL(await Uow.Categories.GetByIndexAndShop(categoryId, shopId))); }
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()); }
public override async Task <Category> FindAsync(params object[] id) { return(CategoryMapper.MapFromDAL(await Uow.Categories.FindAsync(id))); }
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); }
public override async Task <List <Category> > AllAsync() { return((await Uow.Categories.AllAsync()).Select(e => CategoryMapper.MapFromDAL(e)).ToList()); }