public async Task <List <TProperty> > GetListAsync <TProperty>(Guid userId) where TProperty : DkmsPropertyEntity
        {
            var list = await _dkmsRepository.GetListAsync <TProperty>(s => s.UserId == userId);

            return(list);
        }
 public async Task <List <GoodsStockReasonEntity> > GetListAsync(Guid userId)
 {
     return(await _dkmsRepository.GetListAsync <GoodsStockReasonEntity>(s => s.UserId == userId));
 }
Пример #3
0
 public async Task <List <GoodsStockEntity> > GetListAsync(Guid userId, IEnumerable <Guid> goodsIds)
 {
     return(await _dkmsRepository.GetListAsync <GoodsStockEntity>(s => s.UserId == userId && goodsIds.Contains(s.GoodsId)));
 }
Пример #4
0
        public virtual async Task <List <TPropertyValueEntity> > GetListAsync <TPropertyValueEntity>(Expression <Func <TPropertyValueEntity, bool> > predicate) where TPropertyValueEntity : DkmsPropertyValueEntity
        {
            var list = await _dkmsRepository.GetListAsync(predicate);

            return(list);
        }