public void EditBank(Name accountName, string accountNumber, GeneralText description, decimal initialBalance, BankAccountType bankAccountType, EntityStatus status) { AccountName = accountName; AccountNumber = accountNumber; Description = description; AccountNumber = accountNumber; BankAccountType = bankAccountType; InitialBalance = initialBalance; Modified = DateTime.Now; Status = status; }
public BankAccount(Name accountName, string accountNumber, GeneralText description, decimal initialBalance, BankAccountType bankAccountType, DateTime created, EntityStatus status = EntityStatus.Active) { AccountName = accountName; AccountNumber = accountNumber; Description = description; InitialBalance = initialBalance; AccountNumber = accountNumber; BankAccountType = bankAccountType; Created = created == DateTime.MinValue ? DateTime.Now : created; Status = status; }