public void AddAccount()
        {
            Client client = new Client();

            client.Name         = Name;
            client.Surname      = Surname;
            client.OpNumber     = OpNumber;
            client.Street       = Street;
            client.StreetNumber = StreetNumber;
            client.City         = City;
            client.Contact      = Contact;

            Account account = AccountFactory.CreateAccount(AccountName, Iban, OverdraftLimit, CardsCount, client);

            _accountRepository.AddAccount(account);
        }
Ejemplo n.º 2
0
        public void AddNewCard(int accountId)
        {
            Card card = AccountFactory.CreateCard();

            _cardRepository.AddNewCard(card, accountId);
        }