static void ExamCategoryConsole() { IList <ExamCategory> examCategoryList = ExamCategoryRepository.GetExamCategoryListByParentId(5, true); //examCategoryList.Add(ExamCategoryRepository.GetExamCategoryByCategoryId(13)); foreach (var item in examCategoryList) { Console.WriteLine(string.Format("{0},{1},{2}", item.CategoryID, item.ParentID, item.CategoryName)); } }
static void GetCategorySqlTable() { Console.WriteLine(ExamCategoryRepository.GetCategoryTableStringByCategoryId(13, false)); }