Esempio n. 1
0
        public override void Save(Device entity)
        {
            this.Created_At = DateTime.Now;
            this.Updated_At = DateTime.Now;
            this.Creater    = User.CurrentUserId;
            this.Updater    = User.CurrentUserId;
            base.Save(entity);
            Devhistory theHistory = new Devhistory(entity);

            theHistory.Save(theHistory);
        }
Esempio n. 2
0
        public override void Update(Device entity)
        {
            Store theStore = new Store();

            theStore        = theStore.GetById(entity.Store.ID);
            this.Updated_At = DateTime.Now;
            this.Updater    = User.CurrentUserId;
            base.Update(entity);
            Devhistory theHistory = new Devhistory(entity);

            theHistory.Save(theHistory);
        }