示例#1
0
        public List <CheckListTypeContent> GetCheckListType()
        {
            DataSet objDS = adminDL.GetCheckListType();
            List <CheckListTypeContent> CheckListPair = new List <CheckListTypeContent>();

            if (objDS.Tables.Count > 0)
            {
                CheckListPair = objDS.Tables[0].AsEnumerable().Select(m => new CheckListTypeContent()
                {
                    Key      = m.Field <int>("ConfigItemID").ToString(),
                    Value    = m.Field <string>("ConfigItemName"),
                    IsActive = m.Field <int>("isActive")
                }).ToList();
            }
            return(CheckListPair);
        }