public IEnumerable <LoggerDTO> GetLoggers() { var loggers = _loggerRepository.GetLoggers(); IList <LoggerDTO> list = new List <LoggerDTO>(); foreach (var logger in loggers) { list.Add(_loggerMapper.GetLoggerDTOFromLogger(logger)); } return(list); }