{"action":"created","comment":{"url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/comments/240209986","pull_request_review_id":183185881,"id":240209986,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDIwOTk4Ng==","diff_hunk":"@@ -41,13 +54,21 @@ public ActionResult<User> Get(int id)\n         {\n             try\n             {\n-                return Ok(_userService.GetByID(id));\n+                User user = _userService.GetByID(id);","path":"BazarRestAPI/Controllers/UsersController.cs","position":30,"original_position":30,"commit_id":"664f115a46ad7b92fc3e40dcd24aba4960780612","original_commit_id":"664f115a46ad7b92fc3e40dcd24aba4960780612","user":{"login":"JanvanZetten","id":33052378,"node_id":"MDQ6VXNlcjMzMDUyMzc4","avatar_url":"https://avatars3.githubusercontent.com/u/33052378?v=4","gravatar_id":"","url":"https://api.github.com/users/JanvanZetten","html_url":"https://github.com/JanvanZetten","followers_url":"https://api.github.com/users/JanvanZetten/followers","following_url":"https://api.github.com/users/JanvanZetten/following{/other_user}","gists_url":"https://api.github.com/users/JanvanZetten/gists{/gist_id}","starred_url":"https://api.github.com/users/JanvanZetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanvanZetten/subscriptions","organizations_url":"https://api.github.com/users/JanvanZetten/orgs","repos_url":"https://api.github.com/users/JanvanZetten/repos","events_url":"https://api.github.com/users/JanvanZetten/events{/privacy}","received_events_url":"https://api.github.com/users/JanvanZetten/received_events","type":"User","site_admin":false},"body":"You use this multiple times. Maybe you could make a private method to do this so you can reuse it.","created_at":"2018-12-10T13:34:35Z","updated_at":"2018-12-10T13:36:03Z","html_url":"https://github.com/JanvanZetten/BazarBackEnd/pull/51#discussion_r240209986","pull_request_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/comments/240209986"},"html":{"href":"https://github.com/JanvanZetten/BazarBackEnd/pull/51#discussion_r240209986"},"pull_request":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51","id":237314040,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MzE0MDQw","html_url":"https://github.com/JanvanZetten/BazarBackEnd/pull/51","diff_url":"https://github.com/JanvanZetten/BazarBackEnd/pull/51.diff","patch_url":"https://github.com/JanvanZetten/BazarBackEnd/pull/51.patch","issue_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/51","number":51,"state":"open","locked":false,"title":"UserDTO to be sent instead of user objects with requests","user":{"login":"Applemelon","id":32298607,"node_id":"MDQ6VXNlcjMyMjk4NjA3","avatar_url":"https://avatars0.githubusercontent.com/u/32298607?v=4","gravatar_id":"","url":"https://api.github.com/users/Applemelon","html_url":"https://github.com/Applemelon","followers_url":"https://api.github.com/users/Applemelon/followers","following_url":"https://api.github.com/users/Applemelon/following{/other_user}","gists_url":"https://api.github.com/users/Applemelon/gists{/gist_id}","starred_url":"https://api.github.com/users/Applemelon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Applemelon/subscriptions","organizations_url":"https://api.github.com/users/Applemelon/orgs","repos_url":"https://api.github.com/users/Applemelon/repos","events_url":"https://api.github.com/users/Applemelon/events{/privacy}","received_events_url":"https://api.github.com/users/Applemelon/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-10T13:09:17Z","updated_at":"2018-12-10T13:36:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44fdb742d53b58a840b8d7e8a5583b424573beab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51/commits","review_comments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51/comments","review_comment_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/51/comments","statuses_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/statuses/664f115a46ad7b92fc3e40dcd24aba4960780612","head":{"label":"JanvanZetten:UserDTOFeature","ref":"UserDTOFeature","sha":"664f115a46ad7b92fc3e40dcd24aba4960780612","user":{"login":"JanvanZetten","id":33052378,"node_id":"MDQ6VXNlcjMzMDUyMzc4","avatar_url":"https://avatars3.githubusercontent.com/u/33052378?v=4","gravatar_id":"","url":"https://api.github.com/users/JanvanZetten","html_url":"https://github.com/JanvanZetten","followers_url":"https://api.github.com/users/JanvanZetten/followers","following_url":"https://api.github.com/users/JanvanZetten/following{/other_user}","gists_url":"https://api.github.com/users/JanvanZetten/gists{/gist_id}","starred_url":"https://api.github.com/users/JanvanZetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanvanZetten/subscriptions","organizations_url":"https://api.github.com/users/JanvanZetten/orgs","repos_url":"https://api.github.com/users/JanvanZetten/repos","events_url":"https://api.github.com/users/JanvanZetten/events{/privacy}","received_events_url":"https://api.github.com/users/JanvanZetten/received_events","type":"User","site_admin":false},"repo":{"id":158521151,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MjExNTE=","name":"BazarBackEnd","full_name":"JanvanZetten/BazarBackEnd","private":false,"owner":{"login":"JanvanZetten","id":33052378,"node_id":"MDQ6VXNlcjMzMDUyMzc4","avatar_url":"https://avatars3.githubusercontent.com/u/33052378?v=4","gravatar_id":"","url":"https://api.github.com/users/JanvanZetten","html_url":"https://github.com/JanvanZetten","followers_url":"https://api.github.com/users/JanvanZetten/followers","following_url":"https://api.github.com/users/JanvanZetten/following{/other_user}","gists_url":"https://api.github.com/users/JanvanZetten/gists{/gist_id}","starred_url":"https://api.github.com/users/JanvanZetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanvanZetten/subscriptions","organizations_url":"https://api.github.com/users/JanvanZetten/orgs","repos_url":"https://api.github.com/users/JanvanZetten/repos","events_url":"https://api.github.com/users/JanvanZetten/events{/privacy}","received_events_url":"https://api.github.com/users/JanvanZetten/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JanvanZetten/BazarBackEnd","description":"A 3. semester exam project for Datamatiker on EASV. The project is for a bazar in Højer, it should help them organizing table reservations.","fork":false,"url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd","forks_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/forks","keys_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/teams","hooks_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/hooks","issue_events_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/events{/number}","events_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/events","assignees_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/assignees{/user}","branches_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/branches{/branch}","tags_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/tags","blobs_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/statuses/{sha}","languages_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/languages","stargazers_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/stargazers","contributors_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/contributors","subscribers_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/subscribers","subscription_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/subscription","commits_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/contents/{+path}","compare_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/merges","archive_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/downloads","issues_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues{/number}","pulls_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls{/number}","milestones_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/milestones{/number}","notifications_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/labels{/name}","releases_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/releases{/id}","deployments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/deployments","created_at":"2018-11-21T09:12:08Z","updated_at":"2018-12-07T08:23:57Z","pushed_at":"2018-12-10T13:09:42Z","git_url":"git://github.com/JanvanZetten/BazarBackEnd.git","ssh_url":"git@github.com:JanvanZetten/BazarBackEnd.git","clone_url":"https://github.com/JanvanZetten/BazarBackEnd.git","svn_url":"https://github.com/JanvanZetten/BazarBackEnd","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JanvanZetten:Development","ref":"Development","sha":"bb302426cef461163eca6bc68d1c7a89a3047511","user":{"login":"JanvanZetten","id":33052378,"node_id":"MDQ6VXNlcjMzMDUyMzc4","avatar_url":"https://avatars3.githubusercontent.com/u/33052378?v=4","gravatar_id":"","url":"https://api.github.com/users/JanvanZetten","html_url":"https://github.com/JanvanZetten","followers_url":"https://api.github.com/users/JanvanZetten/followers","following_url":"https://api.github.com/users/JanvanZetten/following{/other_user}","gists_url":"https://api.github.com/users/JanvanZetten/gists{/gist_id}","starred_url":"https://api.github.com/users/JanvanZetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanvanZetten/subscriptions","organizations_url":"https://api.github.com/users/JanvanZetten/orgs","repos_url":"https://api.github.com/users/JanvanZetten/repos","events_url":"https://api.github.com/users/JanvanZetten/events{/privacy}","received_events_url":"https://api.github.com/users/JanvanZetten/received_events","type":"User","site_admin":false},"repo":{"id":158521151,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MjExNTE=","name":"BazarBackEnd","full_name":"JanvanZetten/BazarBackEnd","private":false,"owner":{"login":"JanvanZetten","id":33052378,"node_id":"MDQ6VXNlcjMzMDUyMzc4","avatar_url":"https://avatars3.githubusercontent.com/u/33052378?v=4","gravatar_id":"","url":"https://api.github.com/users/JanvanZetten","html_url":"https://github.com/JanvanZetten","followers_url":"https://api.github.com/users/JanvanZetten/followers","following_url":"https://api.github.com/users/JanvanZetten/following{/other_user}","gists_url":"https://api.github.com/users/JanvanZetten/gists{/gist_id}","starred_url":"https://api.github.com/users/JanvanZetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanvanZetten/subscriptions","organizations_url":"https://api.github.com/users/JanvanZetten/orgs","repos_url":"https://api.github.com/users/JanvanZetten/repos","events_url":"https://api.github.com/users/JanvanZetten/events{/privacy}","received_events_url":"https://api.github.com/users/JanvanZetten/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JanvanZetten/BazarBackEnd","description":"A 3. semester exam project for Datamatiker on EASV. The project is for a bazar in Højer, it should help them organizing table reservations.","fork":false,"url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd","forks_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/forks","keys_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/teams","hooks_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/hooks","issue_events_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/events{/number}","events_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/events","assignees_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/assignees{/user}","branches_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/branches{/branch}","tags_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/tags","blobs_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/statuses/{sha}","languages_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/languages","stargazers_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/stargazers","contributors_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/contributors","subscribers_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/subscribers","subscription_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/subscription","commits_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/contents/{+path}","compare_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/merges","archive_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/downloads","issues_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues{/number}","pulls_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls{/number}","milestones_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/milestones{/number}","notifications_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/labels{/name}","releases_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/releases{/id}","deployments_url":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/deployments","created_at":"2018-11-21T09:12:08Z","updated_at":"2018-12-07T08:23:57Z","pushed_at":"2018-12-10T13:09:42Z","git_url":"git://github.com/JanvanZetten/BazarBackEnd.git","ssh_url":"git@github.com:JanvanZetten/BazarBackEnd.git","clone_url":"https://github.com/JanvanZetten/BazarBackEnd.git","svn_url":"https://github.com/JanvanZetten/BazarBackEnd","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51"},"html":{"href":"https://github.com/JanvanZetten/BazarBackEnd/pull/51"},"issue":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/51"},"comments":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/JanvanZetten/BazarBackEnd/statuses/664f115a46ad7b92fc3e40dcd24aba4960780612"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"JanvanZetten"}}