public IEnumerable <LogEntry> GetLog(int topRecords) { if (topRecords < 1) { topRecords = 1; } else if (topRecords > 500) { topRecords = 500; } return(data.GetLog(topRecords)); }