Exemple #1
0
        public ResponseResult <ResourceNode> GetResourceNodeAll()
        {
            var result = ResponseResult <ResourceNode> .Default();

            try
            {
                var resourceService = new ResourceDataService();
                var resourceList    = resourceService.GetResourceNodeAll();

                result = ResponseResult <ResourceNode> .Success(resourceList);
            }
            catch (System.Exception ex)
            {
                result = ResponseResult <ResourceNode> .Error(
                    string.Format("获取资源节点数据失败!{0}", ex.Message)
                    );
            }
            return(result);
        }