Exemplo n.º 1
0
        public List <EventModel> GetAllEvents()
        {
            List <Event> listEvents = _iEventDao.GetAllEvents();

            return(new List <EventModel>(listEvents.Select(x => EventConverter.ConvertToModel(x))));
        }
Exemplo n.º 2
0
        public List <EventModel> GetListEventsByCategoryIdAndByCountry(int categoryId, int countryId)
        {
            List <Event> listEventDB = _iEventDao.GetListEventsByCategoryIdAndByCountry(categoryId, countryId);

            return(listEventDB.Select(x => EventConverter.ConvertToModel(x)).ToList());
        }
Exemplo n.º 3
0
        public EventModel GetEvent(int id)
        {
            Event eventDB = _iEventDao.GetEvent(id);

            return(EventConverter.ConvertToModel(eventDB));
        }