{"action":"created","comment":{"url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/comments/182407252","pull_request_review_id":113193476,"id":182407252,"diff_hunk":"@@ -0,0 +1,66 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.IO;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace C_18_01_Capstone.Main.DataAccessLayer\n+{\n+   public class DataAccessLogger<T> : IDataAccess<T> where T : class, new()\n+   {\n+      private IDataAccess<T> entity;\n+      private string path = \"DataServiceLog.txt\";\n+\n+\n+      public DataAccessLogger(IDataAccess<T> entity)\n+      {\n+         this.entity = entity;\n+      }\n+\n+      public void AddEntity(T entity)\n+      {\n+         string logString = string.Format(\"{0}({1})\", nameof(this.AddEntity), typeof(T).Name);\n+         LogDataStart(logString);\n+         this.entity.AddEntity(entity);\n+         LogDataEnd(logString);\n+      }\n+\n+      public void DeleteEntity(T entity)\n+      {\n+         string logString = string.Format(\"{0}({1})\", nameof(this.DeleteEntity), typeof(T).Name);\n+         LogDataStart(logString);\n+         this.entity.DeleteEntity(entity);\n+         LogDataEnd(logString);\n+      }\n+\n+      private void LogDataStart(string proccessName)\n+      {\n+         string log = LogString(\"Starting\", proccessName);\n+\n+         File.AppendAllText(path,","path":"C-18-01-Capstone.Main/DataAccessLayer/DataAccessLogger.cs","position":41,"original_position":41,"commit_id":"cf805cdfeb12c9ad7a4861e8b793b06db1490fed","original_commit_id":"cf805cdfeb12c9ad7a4861e8b793b06db1490fed","user":{"login":"vmedvedovskiy","id":6632292,"avatar_url":"https://avatars2.githubusercontent.com/u/6632292?v=4","gravatar_id":"","url":"https://api.github.com/users/vmedvedovskiy","html_url":"https://github.com/vmedvedovskiy","followers_url":"https://api.github.com/users/vmedvedovskiy/followers","following_url":"https://api.github.com/users/vmedvedovskiy/following{/other_user}","gists_url":"https://api.github.com/users/vmedvedovskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vmedvedovskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmedvedovskiy/subscriptions","organizations_url":"https://api.github.com/users/vmedvedovskiy/orgs","repos_url":"https://api.github.com/users/vmedvedovskiy/repos","events_url":"https://api.github.com/users/vmedvedovskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vmedvedovskiy/received_events","type":"User","site_admin":false},"body":"replace with filestream (text writer). use Writeline method from it and get rid of newlines","created_at":"2018-04-18T12:27:19Z","updated_at":"2018-04-18T12:27:28Z","html_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4#discussion_r182407252","pull_request_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/comments/182407252"},"html":{"href":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4#discussion_r182407252"},"pull_request":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4","id":182460776,"html_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4","diff_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4.diff","patch_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4.patch","issue_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/4","number":4,"state":"open","locked":false,"title":"Created Add and Delete functions for DB, created process logger","user":{"login":"Eugen-Chervinskiy","id":37136673,"avatar_url":"https://avatars1.githubusercontent.com/u/37136673?v=4","gravatar_id":"","url":"https://api.github.com/users/Eugen-Chervinskiy","html_url":"https://github.com/Eugen-Chervinskiy","followers_url":"https://api.github.com/users/Eugen-Chervinskiy/followers","following_url":"https://api.github.com/users/Eugen-Chervinskiy/following{/other_user}","gists_url":"https://api.github.com/users/Eugen-Chervinskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Eugen-Chervinskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eugen-Chervinskiy/subscriptions","organizations_url":"https://api.github.com/users/Eugen-Chervinskiy/orgs","repos_url":"https://api.github.com/users/Eugen-Chervinskiy/repos","events_url":"https://api.github.com/users/Eugen-Chervinskiy/events{/privacy}","received_events_url":"https://api.github.com/users/Eugen-Chervinskiy/received_events","type":"User","site_admin":false},"body":"Logger registers the state and time of the process.","created_at":"2018-04-18T12:21:41Z","updated_at":"2018-04-18T12:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee6a868713105d2af717cf4962958a5240294019","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/4/comments","statuses_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/statuses/cf805cdfeb12c9ad7a4861e8b793b06db1490fed","head":{"label":"Eugen-Chervinskiy:Eugen-Chervinskiy","ref":"Eugen-Chervinskiy","sha":"cf805cdfeb12c9ad7a4861e8b793b06db1490fed","user":{"login":"Eugen-Chervinskiy","id":37136673,"avatar_url":"https://avatars1.githubusercontent.com/u/37136673?v=4","gravatar_id":"","url":"https://api.github.com/users/Eugen-Chervinskiy","html_url":"https://github.com/Eugen-Chervinskiy","followers_url":"https://api.github.com/users/Eugen-Chervinskiy/followers","following_url":"https://api.github.com/users/Eugen-Chervinskiy/following{/other_user}","gists_url":"https://api.github.com/users/Eugen-Chervinskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Eugen-Chervinskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eugen-Chervinskiy/subscriptions","organizations_url":"https://api.github.com/users/Eugen-Chervinskiy/orgs","repos_url":"https://api.github.com/users/Eugen-Chervinskiy/repos","events_url":"https://api.github.com/users/Eugen-Chervinskiy/events{/privacy}","received_events_url":"https://api.github.com/users/Eugen-Chervinskiy/received_events","type":"User","site_admin":false},"repo":{"id":130021453,"name":"C-18-01-Capstone","full_name":"Eugen-Chervinskiy/C-18-01-Capstone","owner":{"login":"Eugen-Chervinskiy","id":37136673,"avatar_url":"https://avatars1.githubusercontent.com/u/37136673?v=4","gravatar_id":"","url":"https://api.github.com/users/Eugen-Chervinskiy","html_url":"https://github.com/Eugen-Chervinskiy","followers_url":"https://api.github.com/users/Eugen-Chervinskiy/followers","following_url":"https://api.github.com/users/Eugen-Chervinskiy/following{/other_user}","gists_url":"https://api.github.com/users/Eugen-Chervinskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Eugen-Chervinskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eugen-Chervinskiy/subscriptions","organizations_url":"https://api.github.com/users/Eugen-Chervinskiy/orgs","repos_url":"https://api.github.com/users/Eugen-Chervinskiy/repos","events_url":"https://api.github.com/users/Eugen-Chervinskiy/events{/privacy}","received_events_url":"https://api.github.com/users/Eugen-Chervinskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Eugen-Chervinskiy/C-18-01-Capstone","description":"Capstone project for C-18-01 (social network)","fork":true,"url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone","forks_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/forks","keys_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/teams","hooks_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/hooks","issue_events_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/issues/events{/number}","events_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/events","assignees_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/assignees{/user}","branches_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/branches{/branch}","tags_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/tags","blobs_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/statuses/{sha}","languages_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/languages","stargazers_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/stargazers","contributors_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/contributors","subscribers_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/subscribers","subscription_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/subscription","commits_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/contents/{+path}","compare_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/merges","archive_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/downloads","issues_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/issues{/number}","pulls_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/pulls{/number}","milestones_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/milestones{/number}","notifications_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/labels{/name}","releases_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/releases{/id}","deployments_url":"https://api.github.com/repos/Eugen-Chervinskiy/C-18-01-Capstone/deployments","created_at":"2018-04-18T07:25:42Z","updated_at":"2018-04-18T11:51:34Z","pushed_at":"2018-04-18T12:20:01Z","git_url":"git://github.com/Eugen-Chervinskiy/C-18-01-Capstone.git","ssh_url":"git@github.com:Eugen-Chervinskiy/C-18-01-Capstone.git","clone_url":"https://github.com/Eugen-Chervinskiy/C-18-01-Capstone.git","svn_url":"https://github.com/Eugen-Chervinskiy/C-18-01-Capstone","homepage":null,"size":677,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vmedvedovskiy:master","ref":"master","sha":"75eb78745bcb005ffba7889389653412e374202c","user":{"login":"vmedvedovskiy","id":6632292,"avatar_url":"https://avatars2.githubusercontent.com/u/6632292?v=4","gravatar_id":"","url":"https://api.github.com/users/vmedvedovskiy","html_url":"https://github.com/vmedvedovskiy","followers_url":"https://api.github.com/users/vmedvedovskiy/followers","following_url":"https://api.github.com/users/vmedvedovskiy/following{/other_user}","gists_url":"https://api.github.com/users/vmedvedovskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vmedvedovskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmedvedovskiy/subscriptions","organizations_url":"https://api.github.com/users/vmedvedovskiy/orgs","repos_url":"https://api.github.com/users/vmedvedovskiy/repos","events_url":"https://api.github.com/users/vmedvedovskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vmedvedovskiy/received_events","type":"User","site_admin":false},"repo":{"id":128376443,"name":"C-18-01-Capstone","full_name":"vmedvedovskiy/C-18-01-Capstone","owner":{"login":"vmedvedovskiy","id":6632292,"avatar_url":"https://avatars2.githubusercontent.com/u/6632292?v=4","gravatar_id":"","url":"https://api.github.com/users/vmedvedovskiy","html_url":"https://github.com/vmedvedovskiy","followers_url":"https://api.github.com/users/vmedvedovskiy/followers","following_url":"https://api.github.com/users/vmedvedovskiy/following{/other_user}","gists_url":"https://api.github.com/users/vmedvedovskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/vmedvedovskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmedvedovskiy/subscriptions","organizations_url":"https://api.github.com/users/vmedvedovskiy/orgs","repos_url":"https://api.github.com/users/vmedvedovskiy/repos","events_url":"https://api.github.com/users/vmedvedovskiy/events{/privacy}","received_events_url":"https://api.github.com/users/vmedvedovskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone","description":"Capstone project for C-18-01 (social network)","fork":false,"url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone","forks_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/forks","keys_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/teams","hooks_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/hooks","issue_events_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/events{/number}","events_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/events","assignees_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/assignees{/user}","branches_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/branches{/branch}","tags_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/tags","blobs_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/statuses/{sha}","languages_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/languages","stargazers_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/stargazers","contributors_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/contributors","subscribers_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/subscribers","subscription_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/subscription","commits_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/contents/{+path}","compare_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/merges","archive_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/downloads","issues_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues{/number}","pulls_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls{/number}","milestones_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/milestones{/number}","notifications_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/labels{/name}","releases_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/releases{/id}","deployments_url":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/deployments","created_at":"2018-04-06T09:40:41Z","updated_at":"2018-04-18T11:38:48Z","pushed_at":"2018-04-18T12:21:42Z","git_url":"git://github.com/vmedvedovskiy/C-18-01-Capstone.git","ssh_url":"git@github.com:vmedvedovskiy/C-18-01-Capstone.git","clone_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone.git","svn_url":"https://github.com/vmedvedovskiy/C-18-01-Capstone","homepage":null,"size":702,"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":6,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":6,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4"},"html":{"href":"https://github.com/vmedvedovskiy/C-18-01-Capstone/pull/4"},"issue":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/4"},"comments":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vmedvedovskiy/C-18-01-Capstone/statuses/cf805cdfeb12c9ad7a4861e8b793b06db1490fed"}},"author_association":"NONE"}}
{"actor":{"display_login":"vmedvedovskiy"}}