/// <summary> /// 修改管理员状态 /// </summary> public void ManagerUpdateByState(int id) { ManagerUserService sve = new ManagerUserService(); var item = sve.GetOne(id); var index = !item.IsEnable; sve.Edit(new ManagerUser { Id = id, LoginName = item.LoginName, LoginPwd = item.LoginPwd, CreateTime = item.CreateTime, FaceImagePath = item.FaceImagePath, IsEnable = index, LastLoginTime = item.LastLoginTime }); }
/// <summary> /// 修改管理员信息 /// </summary> /// <param name="model"></param> public void ManagerUpdate(ManagerUser model) { ManagerUserService sve = new ManagerUserService(); sve.Edit(model); }