private List<transaction> GetTransactions(string transactiontypecode)
{
var Transactions = new List<transaction>();
if (transaction != null)
{
Transactions.AddRange(transaction.Where(p => p.transactiontype?.code == transactiontypecode));
}
foreach (var ra in includedChildActivities)
{
if (ra.transaction != null)
{
Transactions.AddRange(ra.transaction.Where(p => p.transactiontype?.code == transactiontypecode));
}
}
foreach (var ra in MatchedProjects)
{
if (ra.transaction != null)
{
Transactions.AddRange(ra.transaction.Where(p => p.transactiontype?.code == transactiontypecode));
}
}
return Transactions;
}