public static List <Log> GetLogList( string env, string logType, string message, DateTime from, DateTime to) { List <Log> ret = db.GetLogList(env, logType, message, from, to); ret.Sort((a, b) => b.Date.CompareTo(a.Date)); return(ret.Take(100).ToList()); }