@@ -73,13 +73,13 @@ namespace IRaCIS.Core.Application.Service
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task<ExploreRecommendView> GetExploreRecommentInfo()
|
||||
public async Task<List<ExploreRecommendView> > GetExploreRecommentInfo()
|
||||
{
|
||||
|
||||
|
||||
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
if (result == null)
|
||||
if (result .Count==0)
|
||||
{
|
||||
throw new QueryBusinessObjectNotExistException("系统浏览器版本推荐未维护,请联系维护人员");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user