public async Task <IEnumerable <Transaction> > Get(int?limit) { return(await _dispatcher.DispatchQueryAsync(new GetTransactions(limit))); }
public async Task <Address> Get(string address) { return(await _dispatcher.DispatchQueryAsync(new GetAddress(address))); }
public async Task <Price> Get() { return(await _dispatcher.DispatchQueryAsync(new GetPrice("AKA"))); }
public async Task <Stats> Get() { return(await _dispatcher.DispatchQueryAsync(new GetNetworkStats())); }
public async Task <IEnumerable <Block> > Get(int?limit) { return(await _dispatcher.DispatchQueryAsync(new GetBlocks(limit))); }
public async Task <IEnumerable <Price> > Get() { return(await _dispatcher.DispatchQueryAsync(new GetPrice())); }
public async Task <IActionResult> Get(Guid id) { var result = await _dispatcher.DispatchQueryAsync(new GetPerson(new PersonId(id))); return(Ok(result)); }
public async Task <IEnumerable <Quote> > GetAsync() { var quotes = await _dispatcher.DispatchQueryAsync(new GetAllQuotes()); return(quotes.Select(quote => new Quote(quote.Id, quote.Phrase, quote.Attribution, quote.CreatedAt, quote.UpdatedAt))); }