public async Task <IReadOnlyList <ArtifactPropertyInfo> > GetArtifactsWithPropertyValuesAsync( int userId, IEnumerable <int> artifactIds, IEnumerable <ProfileColumn> profileColumns) { var propertyTypePredefineds = ( from c in profileColumns where c.Predefined != PropertyTypePredefined.CustomGroup select(int) c.Predefined).ToList(); var propertyTypeIds = ( from c in profileColumns where c.PropertyTypeId != null select c.PropertyTypeId.Value).ToList(); return(await _artifactRepository.GetArtifactsWithPropertyValuesAsync(userId, artifactIds, propertyTypePredefineds, propertyTypeIds)); }
public async Task <IEnumerable <ArtifactPropertyInfo> > GetArtifactPropertyInfoAsync(int userId, IEnumerable <int> artifactIds, IEnumerable <int> propertyTypePredefineds, IEnumerable <int> propertyTypeIds) { return(await _artifactRepository.GetArtifactsWithPropertyValuesAsync(userId, artifactIds, propertyTypePredefineds, propertyTypeIds)); }