public List <string> GetYearList() { List <string> yearList = new List <string>(); List <string> yearListIncome = incomeGateway.GetYear(); foreach (var year in yearListIncome) { if (yearList.Contains(year) != true) { yearList.Add(year); } } List <string> yearlistExpense = expenseGateway.GetYear(); foreach (var year in yearlistExpense) { if (yearList.Contains(year) != true) { yearList.Add(year); } } return(yearList); }
public List <string> GetYearList() { return(expenseGateway.GetYear()); }