Exemplo n.º 1
0
        private BankAccountType GetAccountType(AccountType bankAccountType)
        {
            var name = bankAccountType.ToStringValue();

            // In this case I am going to assume all accounts are properly mapped -> First()
            return(UnitOfWork.BankAccountTypes.GetAll().Where(a => a.BankAccountTypeName == name).First());
        }