| | |
| | | dto.LoginLogList = new List<LoginLogItem>(); |
| | | dto.LoginStatisticsList = new List<LoginStatistics>(); |
| | | dto.TotalUsers = users.Count; |
| | | dto.LogSummaryList = logs.GroupBy(x => x.LoginTime.Date).Select(x => new LogSummary() { DateTime = x.Key, Visitors = x.Count() }).ToList(); |
| | | dto.LogSummaryList = logs.GroupBy(x => x.LoginTime.Date).Select(x => new LogSummary() {Date = x.Key.ToString("d"), Visitors = x.Count() }).ToList(); |
| | | |
| | | var uniqueVisitorList = logs.DistinctBy(x => x.UserID).ToList(); |
| | | var today = DateTime.Today; |