/// <summary> /// Get all events ordered by date /// </summary> /// <returns></returns> /// <exception cref="Exception"></exception> public List <EventDto> GetAllEvents() { IEnumerable <Event> entities = new List <Event>(); try { entities = _eventDao.GetAllEvents(); } catch (Exception e) { Console.WriteLine(e); } List <EventDto> dtos = entities.Select(EventDto.Extract).ToList(); return(dtos); }