Пример #1
0
        /// <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
            });
        }
Пример #2
0
        /// <summary>
        /// 获得单个管理员对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ManagerUser ManagerGetOne(int id)
        {
            ManagerUserService sve = new ManagerUserService();

            return(sve.GetOne(id));
        }