Пример #1
0
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <param name="isLogicalDelete">是否逻辑删除</param>
        /// <param name="UsersManager"></param>
        /// <returns></returns>
        private bool ReomveUserFormDb(int userId, bool isLogicalDelete, UsersManager UsersManager)
        {
            //删除人

            if (isLogicalDelete)
            {
                WXQ.Enties.Users user = new Enties.Users();
                user.RsState = 1;

                return(UpdateUsersState(user));
            }
            else
            {
                return(UsersManager.DeleteById(userId));
            }
        }