public int AccountId { get; set; }
public string AccountName { get; set; }
public bool Selected { get; set; }
public string AreaName { get; set; }
public AccountDto[] Accounts { get; set; }
public static void Main()
var areas = new AreaDto[]
AreaName = "Philippines",
Accounts = new AccountDto[]
AccountName = "Account 168",
AccountName = "Account 169",
Accounts = new AccountDto[]
AccountName = "Account 170"
AccountName = "Account 171",
from account in areas.SelectMany(area => area.Accounts)
select account.AccountId;