{"action":"created","comment":{"url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/comments/350591466","pull_request_review_id":322790531,"id":350591466,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1MDU5MTQ2Ng==","diff_hunk":"@@ -1,37 +1,89 @@\n+using System;\n+using System.Collections.Generic;\n+using System.Linq;\n using System.Threading.Tasks;\n-using MvcWeb.Models;\n+using Microsoft.EntityFrameworkCore;\n+using MvcWeb.TheraLang.Constants;\n using MvcWeb.TheraLang.Entities;\n using MvcWeb.TheraLang.UnitOfWork;\n \n namespace MvcWeb.Services\n {\n-    public interface IProjectService\n-    {\n-        Task<bool> TryAddProject(ProjectViewModel projectViewModel);\n-    }\n-\n     public class ProjectService : IProjectService\n     {\n         public ProjectService(IUnitOfWork unitOfWork)\n         {\n-            UnitOfWork = unitOfWork;\n+            _uow = unitOfWork;\n         }\n \n-        private IUnitOfWork UnitOfWork { get; }\n+        private readonly IUnitOfWork _uow;\n+\n+        public IEnumerable<Project> GetAllProjects()\n+        {\n+            return _uow.Repository<Project>().Get().AsNoTracking().ToList();\n+        }\n \n-        public async Task<bool> TryAddProject(ProjectViewModel projectViewModel)\n+        public async Task TryAddProject(Project projectViewModel)","path":"examples/MvcWeb/Services/ProjectService.cs","position":35,"original_position":35,"commit_id":"ec241e42ee37c666ce596b987409e960118f30c3","original_commit_id":"ec241e42ee37c666ce596b987409e960118f30c3","user":{"login":"yrikturash","id":8735059,"node_id":"MDQ6VXNlcjg3MzUwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8735059?v=4","gravatar_id":"","url":"https://api.github.com/users/yrikturash","html_url":"https://github.com/yrikturash","followers_url":"https://api.github.com/users/yrikturash/followers","following_url":"https://api.github.com/users/yrikturash/following{/other_user}","gists_url":"https://api.github.com/users/yrikturash/gists{/gist_id}","starred_url":"https://api.github.com/users/yrikturash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrikturash/subscriptions","organizations_url":"https://api.github.com/users/yrikturash/orgs","repos_url":"https://api.github.com/users/yrikturash/repos","events_url":"https://api.github.com/users/yrikturash/events{/privacy}","received_events_url":"https://api.github.com/users/yrikturash/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n        public async Task Add(Project project)\r\n```","created_at":"2019-11-26T08:17:34Z","updated_at":"2019-11-26T08:21:37Z","html_url":"https://github.com/yrikturash/TheraLang/pull/69#discussion_r350591466","pull_request_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/comments/350591466"},"html":{"href":"https://github.com/yrikturash/TheraLang/pull/69#discussion_r350591466"},"pull_request":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69","id":344624378,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ0NjI0Mzc4","html_url":"https://github.com/yrikturash/TheraLang/pull/69","diff_url":"https://github.com/yrikturash/TheraLang/pull/69.diff","patch_url":"https://github.com/yrikturash/TheraLang/pull/69.patch","issue_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/69","number":69,"state":"open","locked":false,"title":"Features: Project uttmm-25, project type uttmm-42, project pagination uttmm- 37","user":{"login":"stetskivostap","id":43217586,"node_id":"MDQ6VXNlcjQzMjE3NTg2","avatar_url":"https://avatars3.githubusercontent.com/u/43217586?v=4","gravatar_id":"","url":"https://api.github.com/users/stetskivostap","html_url":"https://github.com/stetskivostap","followers_url":"https://api.github.com/users/stetskivostap/followers","following_url":"https://api.github.com/users/stetskivostap/following{/other_user}","gists_url":"https://api.github.com/users/stetskivostap/gists{/gist_id}","starred_url":"https://api.github.com/users/stetskivostap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stetskivostap/subscriptions","organizations_url":"https://api.github.com/users/stetskivostap/orgs","repos_url":"https://api.github.com/users/stetskivostap/repos","events_url":"https://api.github.com/users/stetskivostap/events{/privacy}","received_events_url":"https://api.github.com/users/stetskivostap/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-11-22T17:33:30Z","updated_at":"2019-11-26T08:21:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c01a42ec91682b5065e76376909786c43772bb4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69/commits","review_comments_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69/comments","review_comment_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/69/comments","statuses_url":"https://api.github.com/repos/yrikturash/TheraLang/statuses/ec241e42ee37c666ce596b987409e960118f30c3","head":{"label":"yrikturash:Project-ProjectType-ProjectPagination","ref":"Project-ProjectType-ProjectPagination","sha":"ec241e42ee37c666ce596b987409e960118f30c3","user":{"login":"yrikturash","id":8735059,"node_id":"MDQ6VXNlcjg3MzUwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8735059?v=4","gravatar_id":"","url":"https://api.github.com/users/yrikturash","html_url":"https://github.com/yrikturash","followers_url":"https://api.github.com/users/yrikturash/followers","following_url":"https://api.github.com/users/yrikturash/following{/other_user}","gists_url":"https://api.github.com/users/yrikturash/gists{/gist_id}","starred_url":"https://api.github.com/users/yrikturash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrikturash/subscriptions","organizations_url":"https://api.github.com/users/yrikturash/orgs","repos_url":"https://api.github.com/users/yrikturash/repos","events_url":"https://api.github.com/users/yrikturash/events{/privacy}","received_events_url":"https://api.github.com/users/yrikturash/received_events","type":"User","site_admin":false},"repo":{"id":216991906,"node_id":"MDEwOlJlcG9zaXRvcnkyMTY5OTE5MDY=","name":"TheraLang","full_name":"yrikturash/TheraLang","private":false,"owner":{"login":"yrikturash","id":8735059,"node_id":"MDQ6VXNlcjg3MzUwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8735059?v=4","gravatar_id":"","url":"https://api.github.com/users/yrikturash","html_url":"https://github.com/yrikturash","followers_url":"https://api.github.com/users/yrikturash/followers","following_url":"https://api.github.com/users/yrikturash/following{/other_user}","gists_url":"https://api.github.com/users/yrikturash/gists{/gist_id}","starred_url":"https://api.github.com/users/yrikturash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrikturash/subscriptions","organizations_url":"https://api.github.com/users/yrikturash/orgs","repos_url":"https://api.github.com/users/yrikturash/repos","events_url":"https://api.github.com/users/yrikturash/events{/privacy}","received_events_url":"https://api.github.com/users/yrikturash/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yrikturash/TheraLang","description":"Platform for social lang therapy projects","fork":false,"url":"https://api.github.com/repos/yrikturash/TheraLang","forks_url":"https://api.github.com/repos/yrikturash/TheraLang/forks","keys_url":"https://api.github.com/repos/yrikturash/TheraLang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yrikturash/TheraLang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yrikturash/TheraLang/teams","hooks_url":"https://api.github.com/repos/yrikturash/TheraLang/hooks","issue_events_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/events{/number}","events_url":"https://api.github.com/repos/yrikturash/TheraLang/events","assignees_url":"https://api.github.com/repos/yrikturash/TheraLang/assignees{/user}","branches_url":"https://api.github.com/repos/yrikturash/TheraLang/branches{/branch}","tags_url":"https://api.github.com/repos/yrikturash/TheraLang/tags","blobs_url":"https://api.github.com/repos/yrikturash/TheraLang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yrikturash/TheraLang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yrikturash/TheraLang/git/refs{/sha}","trees_url":"https://api.github.com/repos/yrikturash/TheraLang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yrikturash/TheraLang/statuses/{sha}","languages_url":"https://api.github.com/repos/yrikturash/TheraLang/languages","stargazers_url":"https://api.github.com/repos/yrikturash/TheraLang/stargazers","contributors_url":"https://api.github.com/repos/yrikturash/TheraLang/contributors","subscribers_url":"https://api.github.com/repos/yrikturash/TheraLang/subscribers","subscription_url":"https://api.github.com/repos/yrikturash/TheraLang/subscription","commits_url":"https://api.github.com/repos/yrikturash/TheraLang/commits{/sha}","git_commits_url":"https://api.github.com/repos/yrikturash/TheraLang/git/commits{/sha}","comments_url":"https://api.github.com/repos/yrikturash/TheraLang/comments{/number}","issue_comment_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/comments{/number}","contents_url":"https://api.github.com/repos/yrikturash/TheraLang/contents/{+path}","compare_url":"https://api.github.com/repos/yrikturash/TheraLang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yrikturash/TheraLang/merges","archive_url":"https://api.github.com/repos/yrikturash/TheraLang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yrikturash/TheraLang/downloads","issues_url":"https://api.github.com/repos/yrikturash/TheraLang/issues{/number}","pulls_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls{/number}","milestones_url":"https://api.github.com/repos/yrikturash/TheraLang/milestones{/number}","notifications_url":"https://api.github.com/repos/yrikturash/TheraLang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yrikturash/TheraLang/labels{/name}","releases_url":"https://api.github.com/repos/yrikturash/TheraLang/releases{/id}","deployments_url":"https://api.github.com/repos/yrikturash/TheraLang/deployments","created_at":"2019-10-23T07:12:38Z","updated_at":"2019-11-26T08:04:14Z","pushed_at":"2019-11-26T08:04:12Z","git_url":"git://github.com/yrikturash/TheraLang.git","ssh_url":"git@github.com:yrikturash/TheraLang.git","clone_url":"https://github.com/yrikturash/TheraLang.git","svn_url":"https://github.com/yrikturash/TheraLang","homepage":null,"size":102202,"stargazers_count":3,"watchers_count":3,"language":"C#","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"yrikturash:master","ref":"master","sha":"a2ead537a2a8619b491373537de5f61a1a018b6b","user":{"login":"yrikturash","id":8735059,"node_id":"MDQ6VXNlcjg3MzUwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8735059?v=4","gravatar_id":"","url":"https://api.github.com/users/yrikturash","html_url":"https://github.com/yrikturash","followers_url":"https://api.github.com/users/yrikturash/followers","following_url":"https://api.github.com/users/yrikturash/following{/other_user}","gists_url":"https://api.github.com/users/yrikturash/gists{/gist_id}","starred_url":"https://api.github.com/users/yrikturash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrikturash/subscriptions","organizations_url":"https://api.github.com/users/yrikturash/orgs","repos_url":"https://api.github.com/users/yrikturash/repos","events_url":"https://api.github.com/users/yrikturash/events{/privacy}","received_events_url":"https://api.github.com/users/yrikturash/received_events","type":"User","site_admin":false},"repo":{"id":216991906,"node_id":"MDEwOlJlcG9zaXRvcnkyMTY5OTE5MDY=","name":"TheraLang","full_name":"yrikturash/TheraLang","private":false,"owner":{"login":"yrikturash","id":8735059,"node_id":"MDQ6VXNlcjg3MzUwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8735059?v=4","gravatar_id":"","url":"https://api.github.com/users/yrikturash","html_url":"https://github.com/yrikturash","followers_url":"https://api.github.com/users/yrikturash/followers","following_url":"https://api.github.com/users/yrikturash/following{/other_user}","gists_url":"https://api.github.com/users/yrikturash/gists{/gist_id}","starred_url":"https://api.github.com/users/yrikturash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrikturash/subscriptions","organizations_url":"https://api.github.com/users/yrikturash/orgs","repos_url":"https://api.github.com/users/yrikturash/repos","events_url":"https://api.github.com/users/yrikturash/events{/privacy}","received_events_url":"https://api.github.com/users/yrikturash/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yrikturash/TheraLang","description":"Platform for social lang therapy projects","fork":false,"url":"https://api.github.com/repos/yrikturash/TheraLang","forks_url":"https://api.github.com/repos/yrikturash/TheraLang/forks","keys_url":"https://api.github.com/repos/yrikturash/TheraLang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yrikturash/TheraLang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yrikturash/TheraLang/teams","hooks_url":"https://api.github.com/repos/yrikturash/TheraLang/hooks","issue_events_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/events{/number}","events_url":"https://api.github.com/repos/yrikturash/TheraLang/events","assignees_url":"https://api.github.com/repos/yrikturash/TheraLang/assignees{/user}","branches_url":"https://api.github.com/repos/yrikturash/TheraLang/branches{/branch}","tags_url":"https://api.github.com/repos/yrikturash/TheraLang/tags","blobs_url":"https://api.github.com/repos/yrikturash/TheraLang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yrikturash/TheraLang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yrikturash/TheraLang/git/refs{/sha}","trees_url":"https://api.github.com/repos/yrikturash/TheraLang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yrikturash/TheraLang/statuses/{sha}","languages_url":"https://api.github.com/repos/yrikturash/TheraLang/languages","stargazers_url":"https://api.github.com/repos/yrikturash/TheraLang/stargazers","contributors_url":"https://api.github.com/repos/yrikturash/TheraLang/contributors","subscribers_url":"https://api.github.com/repos/yrikturash/TheraLang/subscribers","subscription_url":"https://api.github.com/repos/yrikturash/TheraLang/subscription","commits_url":"https://api.github.com/repos/yrikturash/TheraLang/commits{/sha}","git_commits_url":"https://api.github.com/repos/yrikturash/TheraLang/git/commits{/sha}","comments_url":"https://api.github.com/repos/yrikturash/TheraLang/comments{/number}","issue_comment_url":"https://api.github.com/repos/yrikturash/TheraLang/issues/comments{/number}","contents_url":"https://api.github.com/repos/yrikturash/TheraLang/contents/{+path}","compare_url":"https://api.github.com/repos/yrikturash/TheraLang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yrikturash/TheraLang/merges","archive_url":"https://api.github.com/repos/yrikturash/TheraLang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yrikturash/TheraLang/downloads","issues_url":"https://api.github.com/repos/yrikturash/TheraLang/issues{/number}","pulls_url":"https://api.github.com/repos/yrikturash/TheraLang/pulls{/number}","milestones_url":"https://api.github.com/repos/yrikturash/TheraLang/milestones{/number}","notifications_url":"https://api.github.com/repos/yrikturash/TheraLang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yrikturash/TheraLang/labels{/name}","releases_url":"https://api.github.com/repos/yrikturash/TheraLang/releases{/id}","deployments_url":"https://api.github.com/repos/yrikturash/TheraLang/deployments","created_at":"2019-10-23T07:12:38Z","updated_at":"2019-11-26T08:04:14Z","pushed_at":"2019-11-26T08:04:12Z","git_url":"git://github.com/yrikturash/TheraLang.git","ssh_url":"git@github.com:yrikturash/TheraLang.git","clone_url":"https://github.com/yrikturash/TheraLang.git","svn_url":"https://github.com/yrikturash/TheraLang","homepage":null,"size":102202,"stargazers_count":3,"watchers_count":3,"language":"C#","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69"},"html":{"href":"https://github.com/yrikturash/TheraLang/pull/69"},"issue":{"href":"https://api.github.com/repos/yrikturash/TheraLang/issues/69"},"comments":{"href":"https://api.github.com/repos/yrikturash/TheraLang/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yrikturash/TheraLang/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/yrikturash/TheraLang/statuses/ec241e42ee37c666ce596b987409e960118f30c3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"yrikturash"}}