{"action":"created","comment":{"url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/comments/87762398","pull_request_review_id":8358179,"id":87762398,"diff_hunk":"@@ -0,0 +1,37 @@\n+﻿using App.Common.Tasks;\n+using System.Collections.Generic;\n+using System.Web;\n+using App.Common;\n+using App.Common.DI;\n+using App.Service.Security;\n+using App.Entity.Security;\n+using System;\n+using App.Common.Helpers;\n+using App.Service.Inventory;\n+using App.Entity.ProductManagement;\n+\n+namespace App.Api.Features.Share.Tasks.Data\n+{\n+    public class CreateCategoryTask : BaseTask<TaskArgument<System.Web.HttpApplication>>, IApplicationReadyTask<TaskArgument<System.Web.HttpApplication>>\n+    {\n+        public CreateCategoryTask() : base(ApplicationType.All)\n+        {\n+        }\n+\n+        public override void Execute(TaskArgument<HttpApplication> context)\n+        {\n+            ICategoryService categoryService = IoC.Container.Resolve<ICategoryService>();\n+            IList<ProductCategory> categories = GetCategoryies();\n+            categoryService.CreateIfNotExist(categories);\n+        }\n+\n+        private IList<ProductCategory> GetCategoryies()\n+        {\n+            return new List<ProductCategory>()\n+            {\n+                new ProductCategory(\"name 1\", ItemStatus.Active, \"description 1\", Guid.NewGuid()),","path":"api/Application.Api/Features/Share/Tasks/Data/CreateCategoryTask.cs","position":32,"original_position":32,"commit_id":"05cac37b972b8704bb355c2f465e032165269bc8","original_commit_id":"05cac37b972b8704bb355c2f465e032165269bc8","user":{"login":"techcoaching","id":21102703,"avatar_url":"https://avatars.githubusercontent.com/u/21102703?v=3","gravatar_id":"","url":"https://api.github.com/users/techcoaching","html_url":"https://github.com/techcoaching","followers_url":"https://api.github.com/users/techcoaching/followers","following_url":"https://api.github.com/users/techcoaching/following{/other_user}","gists_url":"https://api.github.com/users/techcoaching/gists{/gist_id}","starred_url":"https://api.github.com/users/techcoaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcoaching/subscriptions","organizations_url":"https://api.github.com/users/techcoaching/orgs","repos_url":"https://api.github.com/users/techcoaching/repos","events_url":"https://api.github.com/users/techcoaching/events{/privacy}","received_events_url":"https://api.github.com/users/techcoaching/received_events","type":"User","site_admin":false},"body":"Please check and update this.\r\n- We should not create new instance of entity directly\r\n- In 1 feature, should not use entity, dto from other feature","created_at":"2016-11-14T09:22:28Z","updated_at":"2016-11-14T09:29:15Z","html_url":"https://github.com/techcoaching/TinyERP/pull/4#discussion_r87762398","pull_request_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/comments/87762398"},"html":{"href":"https://github.com/techcoaching/TinyERP/pull/4#discussion_r87762398"},"pull_request":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4","id":93478206,"html_url":"https://github.com/techcoaching/TinyERP/pull/4","diff_url":"https://github.com/techcoaching/TinyERP/pull/4.diff","patch_url":"https://github.com/techcoaching/TinyERP/pull/4.patch","issue_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/4","number":4,"state":"open","locked":false,"title":"get and show list category","user":{"login":"HoTran89","id":20885848,"avatar_url":"https://avatars.githubusercontent.com/u/20885848?v=3","gravatar_id":"","url":"https://api.github.com/users/HoTran89","html_url":"https://github.com/HoTran89","followers_url":"https://api.github.com/users/HoTran89/followers","following_url":"https://api.github.com/users/HoTran89/following{/other_user}","gists_url":"https://api.github.com/users/HoTran89/gists{/gist_id}","starred_url":"https://api.github.com/users/HoTran89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoTran89/subscriptions","organizations_url":"https://api.github.com/users/HoTran89/orgs","repos_url":"https://api.github.com/users/HoTran89/repos","events_url":"https://api.github.com/users/HoTran89/events{/privacy}","received_events_url":"https://api.github.com/users/HoTran89/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-13T16:38:19Z","updated_at":"2016-11-14T09:29:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1044d2bb7061360435ddc04a03ac074ecb9d5b9c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4/commits","review_comments_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4/comments","review_comment_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/4/comments","statuses_url":"https://api.github.com/repos/techcoaching/TinyERP/statuses/05cac37b972b8704bb355c2f465e032165269bc8","head":{"label":"techcoaching:feature/156_Show_list_of_categories___client_side","ref":"feature/156_Show_list_of_categories___client_side","sha":"05cac37b972b8704bb355c2f465e032165269bc8","user":{"login":"techcoaching","id":21102703,"avatar_url":"https://avatars.githubusercontent.com/u/21102703?v=3","gravatar_id":"","url":"https://api.github.com/users/techcoaching","html_url":"https://github.com/techcoaching","followers_url":"https://api.github.com/users/techcoaching/followers","following_url":"https://api.github.com/users/techcoaching/following{/other_user}","gists_url":"https://api.github.com/users/techcoaching/gists{/gist_id}","starred_url":"https://api.github.com/users/techcoaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcoaching/subscriptions","organizations_url":"https://api.github.com/users/techcoaching/orgs","repos_url":"https://api.github.com/users/techcoaching/repos","events_url":"https://api.github.com/users/techcoaching/events{/privacy}","received_events_url":"https://api.github.com/users/techcoaching/received_events","type":"User","site_admin":false},"repo":{"id":71363972,"name":"TinyERP","full_name":"techcoaching/TinyERP","owner":{"login":"techcoaching","id":21102703,"avatar_url":"https://avatars.githubusercontent.com/u/21102703?v=3","gravatar_id":"","url":"https://api.github.com/users/techcoaching","html_url":"https://github.com/techcoaching","followers_url":"https://api.github.com/users/techcoaching/followers","following_url":"https://api.github.com/users/techcoaching/following{/other_user}","gists_url":"https://api.github.com/users/techcoaching/gists{/gist_id}","starred_url":"https://api.github.com/users/techcoaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcoaching/subscriptions","organizations_url":"https://api.github.com/users/techcoaching/orgs","repos_url":"https://api.github.com/users/techcoaching/repos","events_url":"https://api.github.com/users/techcoaching/events{/privacy}","received_events_url":"https://api.github.com/users/techcoaching/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techcoaching/TinyERP","description":null,"fork":false,"url":"https://api.github.com/repos/techcoaching/TinyERP","forks_url":"https://api.github.com/repos/techcoaching/TinyERP/forks","keys_url":"https://api.github.com/repos/techcoaching/TinyERP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techcoaching/TinyERP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techcoaching/TinyERP/teams","hooks_url":"https://api.github.com/repos/techcoaching/TinyERP/hooks","issue_events_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/events{/number}","events_url":"https://api.github.com/repos/techcoaching/TinyERP/events","assignees_url":"https://api.github.com/repos/techcoaching/TinyERP/assignees{/user}","branches_url":"https://api.github.com/repos/techcoaching/TinyERP/branches{/branch}","tags_url":"https://api.github.com/repos/techcoaching/TinyERP/tags","blobs_url":"https://api.github.com/repos/techcoaching/TinyERP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techcoaching/TinyERP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techcoaching/TinyERP/git/refs{/sha}","trees_url":"https://api.github.com/repos/techcoaching/TinyERP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techcoaching/TinyERP/statuses/{sha}","languages_url":"https://api.github.com/repos/techcoaching/TinyERP/languages","stargazers_url":"https://api.github.com/repos/techcoaching/TinyERP/stargazers","contributors_url":"https://api.github.com/repos/techcoaching/TinyERP/contributors","subscribers_url":"https://api.github.com/repos/techcoaching/TinyERP/subscribers","subscription_url":"https://api.github.com/repos/techcoaching/TinyERP/subscription","commits_url":"https://api.github.com/repos/techcoaching/TinyERP/commits{/sha}","git_commits_url":"https://api.github.com/repos/techcoaching/TinyERP/git/commits{/sha}","comments_url":"https://api.github.com/repos/techcoaching/TinyERP/comments{/number}","issue_comment_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/comments{/number}","contents_url":"https://api.github.com/repos/techcoaching/TinyERP/contents/{+path}","compare_url":"https://api.github.com/repos/techcoaching/TinyERP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techcoaching/TinyERP/merges","archive_url":"https://api.github.com/repos/techcoaching/TinyERP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techcoaching/TinyERP/downloads","issues_url":"https://api.github.com/repos/techcoaching/TinyERP/issues{/number}","pulls_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls{/number}","milestones_url":"https://api.github.com/repos/techcoaching/TinyERP/milestones{/number}","notifications_url":"https://api.github.com/repos/techcoaching/TinyERP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techcoaching/TinyERP/labels{/name}","releases_url":"https://api.github.com/repos/techcoaching/TinyERP/releases{/id}","deployments_url":"https://api.github.com/repos/techcoaching/TinyERP/deployments","created_at":"2016-10-19T14:09:33Z","updated_at":"2016-11-14T08:09:17Z","pushed_at":"2016-11-13T16:38:19Z","git_url":"git://github.com/techcoaching/TinyERP.git","ssh_url":"git@github.com:techcoaching/TinyERP.git","clone_url":"https://github.com/techcoaching/TinyERP.git","svn_url":"https://github.com/techcoaching/TinyERP","homepage":null,"size":32188,"stargazers_count":43,"watchers_count":43,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":2,"forks":32,"open_issues":2,"watchers":43,"default_branch":"master"}},"base":{"label":"techcoaching:develop","ref":"develop","sha":"6bda924d9126be6bcc5d494c14fa345cd91aface","user":{"login":"techcoaching","id":21102703,"avatar_url":"https://avatars.githubusercontent.com/u/21102703?v=3","gravatar_id":"","url":"https://api.github.com/users/techcoaching","html_url":"https://github.com/techcoaching","followers_url":"https://api.github.com/users/techcoaching/followers","following_url":"https://api.github.com/users/techcoaching/following{/other_user}","gists_url":"https://api.github.com/users/techcoaching/gists{/gist_id}","starred_url":"https://api.github.com/users/techcoaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcoaching/subscriptions","organizations_url":"https://api.github.com/users/techcoaching/orgs","repos_url":"https://api.github.com/users/techcoaching/repos","events_url":"https://api.github.com/users/techcoaching/events{/privacy}","received_events_url":"https://api.github.com/users/techcoaching/received_events","type":"User","site_admin":false},"repo":{"id":71363972,"name":"TinyERP","full_name":"techcoaching/TinyERP","owner":{"login":"techcoaching","id":21102703,"avatar_url":"https://avatars.githubusercontent.com/u/21102703?v=3","gravatar_id":"","url":"https://api.github.com/users/techcoaching","html_url":"https://github.com/techcoaching","followers_url":"https://api.github.com/users/techcoaching/followers","following_url":"https://api.github.com/users/techcoaching/following{/other_user}","gists_url":"https://api.github.com/users/techcoaching/gists{/gist_id}","starred_url":"https://api.github.com/users/techcoaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcoaching/subscriptions","organizations_url":"https://api.github.com/users/techcoaching/orgs","repos_url":"https://api.github.com/users/techcoaching/repos","events_url":"https://api.github.com/users/techcoaching/events{/privacy}","received_events_url":"https://api.github.com/users/techcoaching/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techcoaching/TinyERP","description":null,"fork":false,"url":"https://api.github.com/repos/techcoaching/TinyERP","forks_url":"https://api.github.com/repos/techcoaching/TinyERP/forks","keys_url":"https://api.github.com/repos/techcoaching/TinyERP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techcoaching/TinyERP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techcoaching/TinyERP/teams","hooks_url":"https://api.github.com/repos/techcoaching/TinyERP/hooks","issue_events_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/events{/number}","events_url":"https://api.github.com/repos/techcoaching/TinyERP/events","assignees_url":"https://api.github.com/repos/techcoaching/TinyERP/assignees{/user}","branches_url":"https://api.github.com/repos/techcoaching/TinyERP/branches{/branch}","tags_url":"https://api.github.com/repos/techcoaching/TinyERP/tags","blobs_url":"https://api.github.com/repos/techcoaching/TinyERP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techcoaching/TinyERP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techcoaching/TinyERP/git/refs{/sha}","trees_url":"https://api.github.com/repos/techcoaching/TinyERP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techcoaching/TinyERP/statuses/{sha}","languages_url":"https://api.github.com/repos/techcoaching/TinyERP/languages","stargazers_url":"https://api.github.com/repos/techcoaching/TinyERP/stargazers","contributors_url":"https://api.github.com/repos/techcoaching/TinyERP/contributors","subscribers_url":"https://api.github.com/repos/techcoaching/TinyERP/subscribers","subscription_url":"https://api.github.com/repos/techcoaching/TinyERP/subscription","commits_url":"https://api.github.com/repos/techcoaching/TinyERP/commits{/sha}","git_commits_url":"https://api.github.com/repos/techcoaching/TinyERP/git/commits{/sha}","comments_url":"https://api.github.com/repos/techcoaching/TinyERP/comments{/number}","issue_comment_url":"https://api.github.com/repos/techcoaching/TinyERP/issues/comments{/number}","contents_url":"https://api.github.com/repos/techcoaching/TinyERP/contents/{+path}","compare_url":"https://api.github.com/repos/techcoaching/TinyERP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techcoaching/TinyERP/merges","archive_url":"https://api.github.com/repos/techcoaching/TinyERP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techcoaching/TinyERP/downloads","issues_url":"https://api.github.com/repos/techcoaching/TinyERP/issues{/number}","pulls_url":"https://api.github.com/repos/techcoaching/TinyERP/pulls{/number}","milestones_url":"https://api.github.com/repos/techcoaching/TinyERP/milestones{/number}","notifications_url":"https://api.github.com/repos/techcoaching/TinyERP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techcoaching/TinyERP/labels{/name}","releases_url":"https://api.github.com/repos/techcoaching/TinyERP/releases{/id}","deployments_url":"https://api.github.com/repos/techcoaching/TinyERP/deployments","created_at":"2016-10-19T14:09:33Z","updated_at":"2016-11-14T08:09:17Z","pushed_at":"2016-11-13T16:38:19Z","git_url":"git://github.com/techcoaching/TinyERP.git","ssh_url":"git@github.com:techcoaching/TinyERP.git","clone_url":"https://github.com/techcoaching/TinyERP.git","svn_url":"https://github.com/techcoaching/TinyERP","homepage":null,"size":32188,"stargazers_count":43,"watchers_count":43,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":2,"forks":32,"open_issues":2,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4"},"html":{"href":"https://github.com/techcoaching/TinyERP/pull/4"},"issue":{"href":"https://api.github.com/repos/techcoaching/TinyERP/issues/4"},"comments":{"href":"https://api.github.com/repos/techcoaching/TinyERP/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/techcoaching/TinyERP/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/techcoaching/TinyERP/statuses/05cac37b972b8704bb355c2f465e032165269bc8"}}}}
{"actor":{"display_login":"techcoaching"}}