Exemplo n.º 1
0
        public async Task <ActionResult <LectureDto> > AddLecture(string name, LectureDto dto)
        {
            var eventday = await _eventDayRepo.GetEventAsync(name, true);

            // ToDo: Finish!
            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <ActionResult <EventDayDto> > GetEvent(string name, bool includeLectures = false)
        {
            if (string.IsNullOrEmpty(name))
            {
                return(BadRequest());
            }

            var eventday = await _eventDayRepo.GetEventAsync(name, includeLectures);

            if (eventday is null)
            {
                return(NotFound());
            }

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

            return(Ok(dto));
        }