Пример #1
0
 public EventService(EventRepository eventRepository, EventListQuery eventListQuery,
                     InterpretRepository interpretRepository)
 {
     _eventRepository     = eventRepository;
     _eventListQuery      = eventListQuery;
     _interpretRepository = interpretRepository;
 }
Пример #2
0
        public async Task <ActionResult <IEnumerable <EventView> > > Get([FromQuery] EventListQuery message)
        {
            var result = await _mediator.Send(message);

            return(Ok(result.Results));
        }
Пример #3
0
 public EventController(EventQuery eventQuery, EventListQuery listQuery, IMapper mapper)
 {
     _eventQuery = eventQuery;
     _listQuery  = listQuery;
     _mapper     = mapper;
 }