public IEnumerable <string> GetProductRanges(int category, int depth, int brandSn)
        {
            var lastDepthStoreCategories = ProductCategorySerivce.GetLastDepthStoreCategories(StoreId, category, depth, CompanyId);
            var categories = lastDepthStoreCategories.Select(o => o.CategorySN).ToList();
            var ranges     = ProductRecordService.CurrentRepository.Entities.Where(o => o.CompanyId == CompanyId && categories.Contains(o.CategorySN) && o.BrandSN == brandSn).Select(o => o.Barcode).ToList();

            return(ranges);
        }
Beispiel #2
0
 public IEnumerable <CategoryDAO> GetStoreCategory()
 {
     return(ProductCategorySerivce.GetStoreCategories(StoreId, CompanyId));
 }
Beispiel #3
0
 public ProductCategoryController()
 {
     _service    = new ProductCategorySerivce();
     _dtoService = new ProductCategoryDtoService();
 }