示例#1
0
 public string GetSectionDescription(int pSectionTypeID)
 {
     if (pSectionTypeID > 0)
     {
         SectionTypesTbl _SectionTypesTbl = new SectionTypesTbl();
         return(_SectionTypesTbl.GetSectionTypeByID(pSectionTypeID));
     }
     else
     {
         return(String.Empty);
     }
 }
示例#2
0
        public string GetSectionFromID(string pSectionID)
        {
            string _Section   = "n/a";
            int    _SectionID = 0;

            if (!Int32.TryParse(pSectionID, out _SectionID))
            {
                _SectionID = 0;
            }
            SectionTypesTbl _SectionTypes = new SectionTypesTbl();

            if (_SectionID > 0)
            {
                _Section = _SectionTypes.GetSectionTypeByID(_SectionID);
            }

            return(_Section);
        }