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); }
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); }