private static void SelectThisYearsDates(DataAccessLayer.ThisYearsDate objTYD) { Console.WriteLine("Current Data in Projects"); foreach (DataAccessLayer.ThisYearsDate Row in objTYD.SelThisYearsDates()) { Console.WriteLine(" DateID:{0}\n DateName:{1}\n", Row.DateID, Row.DateName); } Console.WriteLine("---------------------------"); }