public async Task <IActionResult> DailyActiveSessionsAsync() { var sessions = await _store.GetDailyActiveSessionsAsync(); var response = new ActiveSessionsListResponseModel { ActiveSessions = sessions .Select(s => new ActiveSessionsResponseModel { Year = s.EventDate.Year, Month = s.EventDate.Month, Day = s.EventDate.Day, ActiveSessions = s.ActiveSessions }) .ToList() }; return(base.Ok(response)); }