CmsKit - Convert string array to list in IBlogFeatureRepository

pull/7745/head
enisn 5 years ago
parent 9be85963c9
commit f907991eab

@ -11,7 +11,7 @@ namespace Volo.CmsKit.Blogs
{
Task<List<BlogFeature>> GetListAsync(Guid blogId);
Task<List<BlogFeature>> GetListAsync(Guid blogId, string[] featureNames);
Task<List<BlogFeature>> GetListAsync(Guid blogId, List<string> featureNames);
Task<BlogFeature> FindAsync(Guid blogId, string featureName);
}

@ -27,7 +27,7 @@ namespace Volo.CmsKit.Blogs
.ToListAsync();
}
public async Task<List<BlogFeature>> GetListAsync(Guid blogId, string[] featureNames)
public async Task<List<BlogFeature>> GetListAsync(Guid blogId, List<string> featureNames)
{
return await (await GetQueryableAsync())
.Where(x => x.BlogId == blogId && featureNames.Contains(x.FeatureName))

@ -29,7 +29,7 @@ namespace Volo.CmsKit.MongoDB.Blogs
.ToListAsync();
}
public async Task<List<BlogFeature>> GetListAsync(Guid blogId, string[] featureNames)
public async Task<List<BlogFeature>> GetListAsync(Guid blogId, List<string> featureNames)
{
return await (await GetMongoQueryableAsync())
.Where(x => x.BlogId == blogId && featureNames.Contains(x.FeatureName))

Loading…
Cancel
Save