public static IQueryable <T> AddIntegerBetweenFilter <T>(this IQueryable <T> query, int?starTime, int?endTime, Expression <Func <T, int?> > expression) { query = query.AddIntegerGreaterThanOrEqualFilter(starTime, expression); query = query.AddIntegerLessThanOrEqualFilter(endTime, expression); return(query); }