public void Delete(Modules.SYS_User model) { dal.Initialization(); FineOffice.Entity.SYS_User entity = new Entity.SYS_User { ID = model.ID, }; dal.Delete(entity); dal.Dispose(); }
public FineOffice.Modules.SYS_User Update(FineOffice.Modules.SYS_User model) { dal.Initialization(); FineOffice.Entity.SYS_User entity = new Entity.SYS_User { ID = model.ID, Remark = model.Remark, IsModify = model.IsModify, CreateDate = model.CreateDate, Password = FineOffice.Common.DEncrypt.DESEncrypt.Encrypt(model.Password), PersonnelID = model.PersonnelID, UserName = model.UserName, Stop = model.Stop, CheckAuthority = model.CheckAuthority, RoleList = model.RoleList }; dal.Update(entity); dal.Dispose(); return(null); }