예제 #1
0
        public virtual int UpdateObject(BusinessObject obj)
        {
            VinaDbUtil vinaDbUtil        = new VinaDbUtil();
            DateTime   currentServerDate = vinaDbUtil.GetCurrentServerDate();

            vinaDbUtil.SetPropertyValue(obj, "AAUpdatedDate", (object)currentServerDate);
            return(this.dal.UpdateObject((object)obj));
        }
예제 #2
0
        public virtual int CreateObject(BusinessObject obj)
        {
            VinaDbUtil vinaDbUtil        = new VinaDbUtil();
            DateTime   currentServerDate = vinaDbUtil.GetCurrentServerDate();

            vinaDbUtil.SetPropertyValue(obj, "AACreatedDate", (object)currentServerDate);
            int iObjectID = this.dal.CreateObject((object)obj);

            this.dal.SetValueToPrimaryColumn((object)obj, iObjectID);
            return(iObjectID);
        }