{"action":"created","comment":{"url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/comments/85711424","pull_request_review_id":6409965,"id":85711424,"diff_hunk":"@@ -26,15 +29,98 @@ public FilesController(IFileService fileService)\n         {\n             this._fileService = fileService;\n         }\n+        private List<Domain.FileAggregate.FileInfo> setDataInTreeview()\n+        {\n+            //This list will be returned to view Treeview.cshtml\n+            List<Domain.FileAggregate.FileInfo> treeViewList = new List<Domain.FileAggregate.FileInfo>();\n+            \n+            //ID logged in user\n+            string currentUserID = User.Identity.GetUserId();\n \n+            //Select all files logged in user\n+            using (var context = new CloudStorageDbContext())","path":"CloudStorage.UI/Controllers/FilesController.cs","position":32,"original_position":32,"commit_id":"f26382166c5ad52b06b32c88750b2abff7e47130","original_commit_id":"f26382166c5ad52b06b32c88750b2abff7e47130","user":{"login":"repetantil","id":12913329,"avatar_url":"https://avatars.githubusercontent.com/u/12913329?v=3","gravatar_id":"","url":"https://api.github.com/users/repetantil","html_url":"https://github.com/repetantil","followers_url":"https://api.github.com/users/repetantil/followers","following_url":"https://api.github.com/users/repetantil/following{/other_user}","gists_url":"https://api.github.com/users/repetantil/gists{/gist_id}","starred_url":"https://api.github.com/users/repetantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repetantil/subscriptions","organizations_url":"https://api.github.com/users/repetantil/orgs","repos_url":"https://api.github.com/users/repetantil/repos","events_url":"https://api.github.com/users/repetantil/events{/privacy}","received_events_url":"https://api.github.com/users/repetantil/received_events","type":"User","site_admin":false},"body":"Контекст напрямую нельзя использовать в клиентском слое.","created_at":"2016-10-31T10:11:40Z","updated_at":"2016-10-31T10:29:06Z","html_url":"https://github.com/repetantil/courses-file-storage/pull/3#discussion_r85711424","pull_request_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/comments/85711424"},"html":{"href":"https://github.com/repetantil/courses-file-storage/pull/3#discussion_r85711424"},"pull_request":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3","id":91498117,"html_url":"https://github.com/repetantil/courses-file-storage/pull/3","diff_url":"https://github.com/repetantil/courses-file-storage/pull/3.diff","patch_url":"https://github.com/repetantil/courses-file-storage/pull/3.patch","issue_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/3","number":3,"state":"open","locked":false,"title":"Added Treeview, table FileSystemStructure, upload files with drag-and…","user":{"login":"Dmitry7393","id":13189379,"avatar_url":"https://avatars.githubusercontent.com/u/13189379?v=3","gravatar_id":"","url":"https://api.github.com/users/Dmitry7393","html_url":"https://github.com/Dmitry7393","followers_url":"https://api.github.com/users/Dmitry7393/followers","following_url":"https://api.github.com/users/Dmitry7393/following{/other_user}","gists_url":"https://api.github.com/users/Dmitry7393/gists{/gist_id}","starred_url":"https://api.github.com/users/Dmitry7393/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dmitry7393/subscriptions","organizations_url":"https://api.github.com/users/Dmitry7393/orgs","repos_url":"https://api.github.com/users/Dmitry7393/repos","events_url":"https://api.github.com/users/Dmitry7393/events{/privacy}","received_events_url":"https://api.github.com/users/Dmitry7393/received_events","type":"User","site_admin":false},"body":"…-drop\n\nTreeview shows the files specific user\nAll files are shown in special area in a partial view\nAdded creation user folder after registration\nCreation folder User_Data on server if it does not exist\n(key=PathUserData in web.config)\nAdded right-click menu (only for uploading files without directories)\n","created_at":"2016-10-29T18:47:44Z","updated_at":"2016-10-31T10:29:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4edd07e61a8adfd21bedc07876167a77f039c7a5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3/commits","review_comments_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3/comments","review_comment_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/3/comments","statuses_url":"https://api.github.com/repos/repetantil/courses-file-storage/statuses/f26382166c5ad52b06b32c88750b2abff7e47130","head":{"label":"repetantil:FileSystem","ref":"FileSystem","sha":"f26382166c5ad52b06b32c88750b2abff7e47130","user":{"login":"repetantil","id":12913329,"avatar_url":"https://avatars.githubusercontent.com/u/12913329?v=3","gravatar_id":"","url":"https://api.github.com/users/repetantil","html_url":"https://github.com/repetantil","followers_url":"https://api.github.com/users/repetantil/followers","following_url":"https://api.github.com/users/repetantil/following{/other_user}","gists_url":"https://api.github.com/users/repetantil/gists{/gist_id}","starred_url":"https://api.github.com/users/repetantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repetantil/subscriptions","organizations_url":"https://api.github.com/users/repetantil/orgs","repos_url":"https://api.github.com/users/repetantil/repos","events_url":"https://api.github.com/users/repetantil/events{/privacy}","received_events_url":"https://api.github.com/users/repetantil/received_events","type":"User","site_admin":false},"repo":{"id":70044033,"name":"courses-file-storage","full_name":"repetantil/courses-file-storage","owner":{"login":"repetantil","id":12913329,"avatar_url":"https://avatars.githubusercontent.com/u/12913329?v=3","gravatar_id":"","url":"https://api.github.com/users/repetantil","html_url":"https://github.com/repetantil","followers_url":"https://api.github.com/users/repetantil/followers","following_url":"https://api.github.com/users/repetantil/following{/other_user}","gists_url":"https://api.github.com/users/repetantil/gists{/gist_id}","starred_url":"https://api.github.com/users/repetantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repetantil/subscriptions","organizations_url":"https://api.github.com/users/repetantil/orgs","repos_url":"https://api.github.com/users/repetantil/repos","events_url":"https://api.github.com/users/repetantil/events{/privacy}","received_events_url":"https://api.github.com/users/repetantil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/repetantil/courses-file-storage","description":null,"fork":false,"url":"https://api.github.com/repos/repetantil/courses-file-storage","forks_url":"https://api.github.com/repos/repetantil/courses-file-storage/forks","keys_url":"https://api.github.com/repos/repetantil/courses-file-storage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/repetantil/courses-file-storage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/repetantil/courses-file-storage/teams","hooks_url":"https://api.github.com/repos/repetantil/courses-file-storage/hooks","issue_events_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/events{/number}","events_url":"https://api.github.com/repos/repetantil/courses-file-storage/events","assignees_url":"https://api.github.com/repos/repetantil/courses-file-storage/assignees{/user}","branches_url":"https://api.github.com/repos/repetantil/courses-file-storage/branches{/branch}","tags_url":"https://api.github.com/repos/repetantil/courses-file-storage/tags","blobs_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/refs{/sha}","trees_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/repetantil/courses-file-storage/statuses/{sha}","languages_url":"https://api.github.com/repos/repetantil/courses-file-storage/languages","stargazers_url":"https://api.github.com/repos/repetantil/courses-file-storage/stargazers","contributors_url":"https://api.github.com/repos/repetantil/courses-file-storage/contributors","subscribers_url":"https://api.github.com/repos/repetantil/courses-file-storage/subscribers","subscription_url":"https://api.github.com/repos/repetantil/courses-file-storage/subscription","commits_url":"https://api.github.com/repos/repetantil/courses-file-storage/commits{/sha}","git_commits_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/commits{/sha}","comments_url":"https://api.github.com/repos/repetantil/courses-file-storage/comments{/number}","issue_comment_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/comments{/number}","contents_url":"https://api.github.com/repos/repetantil/courses-file-storage/contents/{+path}","compare_url":"https://api.github.com/repos/repetantil/courses-file-storage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/repetantil/courses-file-storage/merges","archive_url":"https://api.github.com/repos/repetantil/courses-file-storage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/repetantil/courses-file-storage/downloads","issues_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues{/number}","pulls_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls{/number}","milestones_url":"https://api.github.com/repos/repetantil/courses-file-storage/milestones{/number}","notifications_url":"https://api.github.com/repos/repetantil/courses-file-storage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/repetantil/courses-file-storage/labels{/name}","releases_url":"https://api.github.com/repos/repetantil/courses-file-storage/releases{/id}","deployments_url":"https://api.github.com/repos/repetantil/courses-file-storage/deployments","created_at":"2016-10-05T08:53:23Z","updated_at":"2016-10-17T12:17:08Z","pushed_at":"2016-10-30T19:19:58Z","git_url":"git://github.com/repetantil/courses-file-storage.git","ssh_url":"git@github.com:repetantil/courses-file-storage.git","clone_url":"https://github.com/repetantil/courses-file-storage.git","svn_url":"https://github.com/repetantil/courses-file-storage","homepage":null,"size":657,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"repetantil:master","ref":"master","sha":"85f12fd368535e52f0d8a6c699bfdf926582f5aa","user":{"login":"repetantil","id":12913329,"avatar_url":"https://avatars.githubusercontent.com/u/12913329?v=3","gravatar_id":"","url":"https://api.github.com/users/repetantil","html_url":"https://github.com/repetantil","followers_url":"https://api.github.com/users/repetantil/followers","following_url":"https://api.github.com/users/repetantil/following{/other_user}","gists_url":"https://api.github.com/users/repetantil/gists{/gist_id}","starred_url":"https://api.github.com/users/repetantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repetantil/subscriptions","organizations_url":"https://api.github.com/users/repetantil/orgs","repos_url":"https://api.github.com/users/repetantil/repos","events_url":"https://api.github.com/users/repetantil/events{/privacy}","received_events_url":"https://api.github.com/users/repetantil/received_events","type":"User","site_admin":false},"repo":{"id":70044033,"name":"courses-file-storage","full_name":"repetantil/courses-file-storage","owner":{"login":"repetantil","id":12913329,"avatar_url":"https://avatars.githubusercontent.com/u/12913329?v=3","gravatar_id":"","url":"https://api.github.com/users/repetantil","html_url":"https://github.com/repetantil","followers_url":"https://api.github.com/users/repetantil/followers","following_url":"https://api.github.com/users/repetantil/following{/other_user}","gists_url":"https://api.github.com/users/repetantil/gists{/gist_id}","starred_url":"https://api.github.com/users/repetantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repetantil/subscriptions","organizations_url":"https://api.github.com/users/repetantil/orgs","repos_url":"https://api.github.com/users/repetantil/repos","events_url":"https://api.github.com/users/repetantil/events{/privacy}","received_events_url":"https://api.github.com/users/repetantil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/repetantil/courses-file-storage","description":null,"fork":false,"url":"https://api.github.com/repos/repetantil/courses-file-storage","forks_url":"https://api.github.com/repos/repetantil/courses-file-storage/forks","keys_url":"https://api.github.com/repos/repetantil/courses-file-storage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/repetantil/courses-file-storage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/repetantil/courses-file-storage/teams","hooks_url":"https://api.github.com/repos/repetantil/courses-file-storage/hooks","issue_events_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/events{/number}","events_url":"https://api.github.com/repos/repetantil/courses-file-storage/events","assignees_url":"https://api.github.com/repos/repetantil/courses-file-storage/assignees{/user}","branches_url":"https://api.github.com/repos/repetantil/courses-file-storage/branches{/branch}","tags_url":"https://api.github.com/repos/repetantil/courses-file-storage/tags","blobs_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/refs{/sha}","trees_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/repetantil/courses-file-storage/statuses/{sha}","languages_url":"https://api.github.com/repos/repetantil/courses-file-storage/languages","stargazers_url":"https://api.github.com/repos/repetantil/courses-file-storage/stargazers","contributors_url":"https://api.github.com/repos/repetantil/courses-file-storage/contributors","subscribers_url":"https://api.github.com/repos/repetantil/courses-file-storage/subscribers","subscription_url":"https://api.github.com/repos/repetantil/courses-file-storage/subscription","commits_url":"https://api.github.com/repos/repetantil/courses-file-storage/commits{/sha}","git_commits_url":"https://api.github.com/repos/repetantil/courses-file-storage/git/commits{/sha}","comments_url":"https://api.github.com/repos/repetantil/courses-file-storage/comments{/number}","issue_comment_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues/comments{/number}","contents_url":"https://api.github.com/repos/repetantil/courses-file-storage/contents/{+path}","compare_url":"https://api.github.com/repos/repetantil/courses-file-storage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/repetantil/courses-file-storage/merges","archive_url":"https://api.github.com/repos/repetantil/courses-file-storage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/repetantil/courses-file-storage/downloads","issues_url":"https://api.github.com/repos/repetantil/courses-file-storage/issues{/number}","pulls_url":"https://api.github.com/repos/repetantil/courses-file-storage/pulls{/number}","milestones_url":"https://api.github.com/repos/repetantil/courses-file-storage/milestones{/number}","notifications_url":"https://api.github.com/repos/repetantil/courses-file-storage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/repetantil/courses-file-storage/labels{/name}","releases_url":"https://api.github.com/repos/repetantil/courses-file-storage/releases{/id}","deployments_url":"https://api.github.com/repos/repetantil/courses-file-storage/deployments","created_at":"2016-10-05T08:53:23Z","updated_at":"2016-10-17T12:17:08Z","pushed_at":"2016-10-30T19:19:58Z","git_url":"git://github.com/repetantil/courses-file-storage.git","ssh_url":"git@github.com:repetantil/courses-file-storage.git","clone_url":"https://github.com/repetantil/courses-file-storage.git","svn_url":"https://github.com/repetantil/courses-file-storage","homepage":null,"size":657,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3"},"html":{"href":"https://github.com/repetantil/courses-file-storage/pull/3"},"issue":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/issues/3"},"comments":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/repetantil/courses-file-storage/statuses/f26382166c5ad52b06b32c88750b2abff7e47130"}}}}
{"actor":{"display_login":"repetantil"}}