public List<int> YearList { get; set; }
this.YearList = new List<int>();
foreach (var item in this.AccountBalanceList.Select(a => new { a.BalanceYear }).Distinct())
{
this.YearList.Add(Convert.ToInt32(item.BalanceYear));
}
public List<int> YearList { get; set; }
this.YearList = new List<int>();
foreach (var item in this.AccountBalanceList.Select(a => new { a.BalanceYear }).Distinct())
{
this.YearList.Add(Convert.ToInt32(item.BalanceYear));
}
Comments