public EventService(EventRepository eventRepository, EventListQuery eventListQuery, InterpretRepository interpretRepository) { _eventRepository = eventRepository; _eventListQuery = eventListQuery; _interpretRepository = interpretRepository; }
public async Task <ActionResult <IEnumerable <EventView> > > Get([FromQuery] EventListQuery message) { var result = await _mediator.Send(message); return(Ok(result.Results)); }
public EventController(EventQuery eventQuery, EventListQuery listQuery, IMapper mapper) { _eventQuery = eventQuery; _listQuery = listQuery; _mapper = mapper; }