public ActionResult <IEnumerable <TicketingRecordDTO> > GetAllByEventAndStatus(int eventId, int status)
        {
            var query   = new AllTicketingRecordsByEventAndStatusQuery(eventId, status);
            var handler = _queryHandler.Build(query);

            return(Ok(_mapper.Map <IEnumerable <TicketingRecordDTO> >(handler.Get())));
        }
예제 #2
0
 public IQueryHandler <AllTicketingRecordsByEventAndStatusQuery, IEnumerable <TicketingRecord> > Build(AllTicketingRecordsByEventAndStatusQuery query)
 {
     return(new AllTicketingRecordsByEventAndStatusQueryHandler(_service, query));
 }
예제 #3
0
 public AllTicketingRecordsByEventAndStatusQueryHandler(ITicketingService service, AllTicketingRecordsByEventAndStatusQuery query)
 {
     _service = service;
     _query   = query;
 }