Esempio n. 1
0
        public List <StockModel> GetStock(IEnumerable <Guid> goodsIds)
        {
            var subscriberId = UserContext.Current.SubscriberId;
            Expression <Func <StockEntity, bool> > predicate = s => goodsIds.Contains(s.Id);

            return(_searchRepository.GetStock(subscriberId, predicate));
        }
Esempio n. 2
0
        public List <StockPropertyModel> Provide(Guid goodsId)
        {
            var subscriberId = UserContext.Current.SubscriberId;
            var goods        = _searchRepository.GetStock(subscriberId, goodsId);

            return(_categoryPropertyProvider.ProvideAssociations(goods.CategoryId));
        }