コード例 #1
0
        public BankAccountCreateResponse CreateBankAccount(BankAccountCreateRequest bankAccountCreateRequest)
        {
            BankAccountCreateResponse bankAccountCreateResponse = new BankAccountCreateResponse();
            BankAccount bankAccount = new BankAccount();

            bankAccount.CustomerRef = bankAccountCreateRequest.CustomerName;
            _bankRepository.Add(bankAccount);
            return bankAccountCreateResponse;
        }
コード例 #2
0
ファイル: Default.aspx.cs プロジェクト: TarRob/Learning
    protected void btCreateAccount_Click(object sender, EventArgs e)
    {
        BankAccountCreateRequest createAccountRequest = new BankAccountCreateRequest();

        createAccountRequest.CustomerName = this.txtCustomerRef.Text;

        ApplicationBankAccountService service = new ApplicationBankAccountService();

        service.CreateBankAccount(createAccountRequest);

        ShowAllAccounts();
    }