Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 static void GetCategorySqlTable()
 {
     Console.WriteLine(ExamCategoryRepository.GetCategoryTableStringByCategoryId(13, false));
 }