public ClassNames(int class_Name_ID) { ClassNamesBL classNames = new ClassNamesBL(); lkpClassNames = classNames.GetClass_NameByClass_Name_ID(class_Name_ID); Class_Name_ID = class_Name_ID; Description = lkpClassNames[0].Class_Name_Description; Class_Name_Description = Description; }
public List<ClassNames> GetClass_Names() { List<ClassNames> classNameList = new List<ClassNames>(); ClassNamesBL classNames = new ClassNamesBL(); lkpClassNames = classNames.GetClass_Names(); if (lkpClassNames != null && lkpClassNames.Count > 0) { foreach (sss.lkpClass_NamesRow row in lkpClassNames) { ClassNames className = new ClassNames(row.Class_Name_ID); classNameList.Add(className); } } return classNameList; }
public ClassNames() { ClassNamesBL classNames = new ClassNamesBL(); lkpClassNames = classNames.GetClass_Names(); }