Exemple #1
0
 private void DeleteTransactionsForAdviser(Adviser adviser)
 {
     foreach (var transaction in repository.Transactions.Where(x => x.Adviser.AdviserId == adviser.AdviserId))
     {
         repository.Transactions.Remove(transaction);
     }
 }
Exemple #2
0
 private void DeleteEntitlementsForAdviser(Adviser adviser)
 {
     foreach (var entitlement in repository.Entitlements.Where(x => x.AdviserId == adviser.AdviserId))
     {
         repository.Entitlements.Remove(entitlement);
     }
 }
Exemple #3
0
 private void DeleteAdvisers(Adviser adviser)
 {
     foreach (var a in repository.Advisers.Where(x => x.AdviserId == adviser.AdviserId))
     {
         repository.Advisers.Remove(a);
     }
 }
Exemple #4
0
 private void DeleteBalancesForAdviser(Adviser adviser)
 {
     foreach (var balance in repository.InvestmentBalances.Where(x => x.Adviser.AdviserId == adviser.AdviserId))
     {
         repository.InvestmentBalances.Remove(balance);
     }
 }
Exemple #5
0
 private void DeleteAccountsForAdviser(Adviser adviser)
 {
     foreach (var account in repository.Accounts.Where(x => x.Adviser.AdviserId == adviser.AdviserId))
     {
         repository.Accounts.Remove(account);
     }
 }