public ExceptionLogs() { this.RequiresAuthentication(); Get("/exceptionlogs", args => { var model = new DataLogsModel(); model.ExceptionLogsActive = "active"; model.Title = "Exception Logs"; var page = int.Parse(Request.Query["page"].Value ?? "0"); if (page < 0) { page = 0; } var logsFrom = page * 15; var logsTo = 15; var futLogs = FUTLogsDatabase.GetFUTExceptionLogs(logsFrom, logsTo); var checkNextPage = FUTLogsDatabase.CheckNextPageFUTExceptionLogs(logsFrom + 15, logsTo); var checkPreviousPage = FUTLogsDatabase.CheckPreviousPageFUTExceptionLogs(logsFrom, logsTo); model.Logs = new List <DataLogsModel.SingleDataLog>(); foreach (var futLog in futLogs) { model.Logs.Add(new DataLogsModel.SingleDataLog() { ID = futLog.ID, Account = futLog.EMail, Data = futLog.Data, Timestamp = $"{Helper.TimestampToDateTime(futLog.Timestamp):d/M/yyyy HH:mm:ss}" });