修改
This commit is contained in:
@@ -676,10 +676,10 @@ namespace IRaCIS.Application.Services
|
||||
public async Task<PageOutput<ReadingQuestionCriterionSystemView>> GetReadingQuestionCriterionSystemList(ReadingQuestionCriterionSystemViewInDto inDto)
|
||||
{
|
||||
//await AddSystemQuestionCriterion();
|
||||
var query= _readingQuestionCriterionSystemRepository.AsQueryable()
|
||||
var query = _readingQuestionCriterionSystemRepository.AsQueryable()
|
||||
.WhereIf(!inDto.CriterionName.IsNullOrEmpty(), x => x.CriterionName.Contains(inDto.CriterionName))
|
||||
.ProjectTo<ReadingQuestionCriterionSystemView>(_mapper.ConfigurationProvider)
|
||||
.Where(x=>x.IsEnable);
|
||||
.ProjectTo<ReadingQuestionCriterionSystemView>(_mapper.ConfigurationProvider);
|
||||
|
||||
return await query.ToPagedListAsync(inDto.PageIndex, inDto.PageSize, inDto.SortField.IsNullOrEmpty() ? nameof(ReadingQuestionCriterionSystemView.ShowOrder) : inDto.SortField,
|
||||
inDto.Asc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user