public static IQueryable<T> WHEREIF<T>(this IQueryable<T> source, Expression<Func<T, bool>> filter, bool isEmpty)
{
return isEmpty ? source.Where(filter) : source;
}