Exemple #1
0
 /// <summary>
 /// Maps information from instance of Account from data layer to business layer
 /// </summary>
 /// <param name="account">The data layer account</param>
 /// <returns>The business layer account</returns>
 public static Interface.Entities.Account MapToBusiness(Account account)
 {
     return(new Interface.Entities.Account(
                account.AccountNumber,
                account.AccountOwner.ToString(),
                AccountTypeMapper.GetBusinessAccountType(account.AccountType))
     {
         BonusCount = account.BonusCount,
         CurrentAmount = account.CurrentAmount
     });
 }