public async Task <IActionResult> GetAll() { var command = new GetAllTransactions(); await DispatchAsync(command); return(Ok(Json(command.transactions))); }
protected virtual void OnGetAllTransactions(GetAllTransactionsEventArgs args) { EventHandler <GetAllTransactionsEventArgs> tmp = GetAllTransactions; if (tmp != null) { GetAllTransactions?.Invoke(this, args); } }
public RequestAllTransactions(GetAllTransactions getAllTransactions) { _getAllTransactions = getAllTransactions; }