Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <EventDayDto> > > GetAllEvents(bool includeLectures = false)
        {
            var result = await _eventDayRepo.GetAllAsync(includeLectures);

            var dto = _mapper.Map <IEnumerable <EventDayDto> >(result);

            return(Ok(dto));
        }