Ejemplo n.º 1
0
        public ICollection <EventDto> FindAllEvents()
        {
            ICollection <Event>    events    = EventDao.GetAllElements();
            ICollection <EventDto> eventsDto = new HashSet <EventDto>();

            foreach (Event evento in events)
            {
                eventsDto.Add(new EventDto(evento));
            }
            return(eventsDto);
        }