public async Task <IActionResult> Get() { var command = new GetBankAccounts(); await DispatchAsync(command); return(Ok(Json(command.banks))); }
public GetBankAccountsResponse Get(GetBankAccounts request) { BankAccount[] accounts = Repository.Query().ToArray(); return new GetBankAccountsResponse { Success = true, Accounts = accounts }; }