Example #1
0
        public ResponseResult ClearUserResourceList(UserResourceEntity entity)
        {
            var result = ResponseResult.Default();

            try
            {
                var resourceService = new ResourceDataService();
                resourceService.ClearUserResourceList(entity.UserID);

                result = ResponseResult.Success();
            }
            catch (System.Exception ex)
            {
                result = ResponseResult.Error(string.Format("清除用户自有资源授权数据失败!{0}", ex.Message));
            }
            return(result);
        }