public ShowTypes(int show_Type_ID) { ShowTypesBL showTypes = new ShowTypesBL(); lkpShowTypes = showTypes.GetShow_TypesByShow_Type_ID(show_Type_ID); Show_Type_ID = show_Type_ID; Description = lkpShowTypes[0].Show_Type_Description; }
public List<ShowTypes> GetShow_Types() { List<ShowTypes> showTypeList = new List<ShowTypes>(); ShowTypesBL showTypes = new ShowTypesBL(); lkpShowTypes = showTypes.GetShow_Types(); if (lkpShowTypes != null && lkpShowTypes.Count > 0) { foreach (sss.lkpShow_TypesRow row in lkpShowTypes) { ShowTypes showType = new ShowTypes(row.Show_Type_ID); showTypeList.Add(showType); } } return showTypeList; }
public ShowTypes() { ShowTypesBL showTypes = new ShowTypesBL(); lkpShowTypes = showTypes.GetShow_Types(); }