Simple solution:
if (!string.IsNullOrEmpty(searchIsFallBack))
{
if(searchIsFallBack == "true")
{
tableData = (IOrderedQueryable<TableData>)tableData.Where(m => m.IsFallBack);
}
else
{
tableData = (IOrderedQueryable<TableData>)tableData.Where(m => !m.IsFallBack);
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…