public IList <AuthenticationEvent> All(Guid aggregateId)
        {
            var loggedEvents = _eventDb.GetAll(aggregateId);

            return(loggedEvents.Select(Map).ToList());
        }
 public IList <LoggedEvent> GetHistoryForUserId(Guid userId)
 {
     return(_loggedEventRepository.GetAll(userId)
            .OrderByDescending(x => x.TimeStamp)
            .ToList());
 }