public static Account ToInterfaceAccount(this BllAccount bllAccount, BankUser bankUser) => new Account { Id = CryptographyHelper.Decrypt(bllAccount.Id, bllAccount.BankUser.Email), BankUser = bankUser, Sum = bllAccount.Sum, Type = GetAccountType(bllAccount.GetType().Name), BonusPoints = bllAccount.BonusPoints };
public static DalAccount ToDalAccount(this BllAccount bllAccount) => new DalAccount { Id = bllAccount.Id, BonusPoints = bllAccount.BonusPoints, Sum = bllAccount.Sum, Type = GetAccountType(bllAccount.GetType()), BankUser = bllAccount.BankUser.ToDalBankUser(string.Empty) };