Beispiel #1
0
        public bool Delete()
        {
            try
            {
            objclsSEGMENT = new Segment();

            objclsSEGMENT.ID = ID;

            if(objclsSEGMENT.Delete())
            {
                return true;
            }
            return false;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }
Beispiel #2
0
        public bool Update()
        {
            try
            {
            objclsSEGMENT = new Segment();

            objclsSEGMENT.ID = ID;
            objclsSEGMENT.USERID = USERID;
            objclsSEGMENT.LISTID = LISTID;
            objclsSEGMENT.NAME = NAME;
            objclsSEGMENT.DESCRIPTION = DESCRIPTION;
            objclsSEGMENT.TOTALSUBSCRIBES = TOTALSUBSCRIBES;
            objclsSEGMENT.MODIFIEDDATE = MODIFIEDDATE;

            if(objclsSEGMENT.Update())
            {
                return true;
            }
            return false;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }
Beispiel #3
0
        public DataTable Select()
        {
            DataTable dt;
            try
            {
            objclsSEGMENT = new Segment();

            objclsSEGMENT.ID = ID;

            dt = objclsSEGMENT.Select();
            return dt;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }