public SessionReadDto GetById(Guid sessionEntityId)
        {
            var session = _repository.GetLastByFilter <Session>(c => c.Id == sessionEntityId);

            var newSessionDto = new SessionReadDto()
            {
                Question     = session.Question,
                SecurityCode = session.SecurityCode
            };

            return(newSessionDto);
        }
        public ICollection <SessionReadDto> GetAll()
        {
            List <SessionReadDto> sessionsDtos = new List <SessionReadDto>();

            var sessions = _repository.GetAll <Session>();

            foreach (var session in sessions)
            {
                var sessionDto = new SessionReadDto()
                {
                    Question     = session.Question,
                    SecurityCode = session.SecurityCode
                };
                sessionsDtos.Add(sessionDto);
            }

            return(sessionsDtos);
        }