public ActionResult <IEnumerable <TicketingRecordDTO> > GetAllByEvent(int eventId)
        {
            var query   = new AllTicketingRecordsByEventQuery(eventId);
            var handler = _queryHandler.Build(query);

            return(Ok(_mapper.Map <IEnumerable <TicketingRecordDTO> >(handler.Get())));
        }
 public AllTicketingRecordsByEventQueryHandler(ITicketingService service, AllTicketingRecordsByEventQuery query)
 {
     _service = service;
     _query   = query;
 }
Beispiel #3
0
 public IQueryHandler <AllTicketingRecordsByEventQuery, IEnumerable <TicketingRecord> > Build(AllTicketingRecordsByEventQuery query)
 {
     return(new AllTicketingRecordsByEventQueryHandler(_service, query));
 }