public async Task <IEnumerable <Event> > Get() { var query = new AllEventsQuery(); var speakers = await _queryProcessor.ProcessAsync(query); return(speakers); }
public ActionResult <IEnumerable <EventDTO> > GetAll() { var query = new AllEventsQuery(); var handler = _queryHandler.Build(query); return(Ok(_mapper.Map <IEnumerable <EventDTO> >(handler.Get()))); }
public async Task<IEnumerable<Event>> Get() { var query = new AllEventsQuery(); var speakers = await _queryProcessor.ProcessAsync(query); return speakers; }
public IQueryHandler <AllEventsQuery, IEnumerable <Event> > Build(AllEventsQuery query) { return(new AllEventsQueryHandler(_service)); }
public async Task <IEnumerable <Event> > ExecuteAsync(AllEventsQuery query) { var result = await _tableClient.GetItemsOf <Event>(); return(result); }
public Task <IQueryable <Event> > Handle(AllEventsQuery request, CancellationToken cancellationToken) { var events = _eventRepository.GetAll(); return(Task.FromResult(events)); }