예제 #1
0
        public async Task <ActionResult <Agenda> > GetById(int id)
        {
            var agenda = await _iAgendaService.FindByIdAsync(id);

            if (agenda == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <AgendaDtoResponse>(agenda)));
        }