public List <EmployeeModel> GetEmployee(IEnumerable <Guid> goodsIds) { var subscriberId = UserContext.Current.SubscriberId; Expression <Func <EmployeeEntity, bool> > predicate = s => goodsIds.Contains(s.Id); return(_searchRepository.GetEmployee(subscriberId, predicate)); }
public List <EmployeePropertyModel> Provide(Guid goodsId) { var subscriberId = UserContext.Current.SubscriberId; var goods = _searchRepository.GetEmployee(subscriberId, goodsId); return(_categoryPropertyProvider.ProvideAssociations(goods.CategoryId)); }