Example #1
0
        /// <summary>
        /// 更新系统用户
        /// </summary>
        /// <param name="updateInfo"></param>
        /// <returns></returns>
        public bool UpdateSysUser(UpdateInfo updateInfo)
        {
            var propertyList = updateInfo.GetPropertyNames();

            if (propertyList == null || propertyList.Length == 0)
            {
                return(false);
            }

            _sysUserRepository.UpdateEntity(updateInfo.GetData <SysUserInfo>(), propertyList);

            return(_unitOfWork.Commit() > 0);
        }