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()))); }
public IQueryHandler <AllTicketingRecordsByEventAndStatusQuery, IEnumerable <TicketingRecord> > Build(AllTicketingRecordsByEventAndStatusQuery query) { return(new AllTicketingRecordsByEventAndStatusQueryHandler(_service, query)); }
public AllTicketingRecordsByEventAndStatusQueryHandler(ITicketingService service, AllTicketingRecordsByEventAndStatusQuery query) { _service = service; _query = query; }