{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/253","labels_url":"https://api.github.com/repos/aspnet/Home/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/253/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/253/events","html_url":"https://github.com/aspnet/Home/issues/253","id":53229725,"number":253,"title":"Compiler warning (level 2) CS0108 in HelloMVC based projects","user":{"login":"peterblazejewicz","id":14539,"avatar_url":"https://avatars.githubusercontent.com/u/14539?v=3","gravatar_id":"","url":"https://api.github.com/users/peterblazejewicz","html_url":"https://github.com/peterblazejewicz","followers_url":"https://api.github.com/users/peterblazejewicz/followers","following_url":"https://api.github.com/users/peterblazejewicz/following{/other_user}","gists_url":"https://api.github.com/users/peterblazejewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterblazejewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterblazejewicz/subscriptions","organizations_url":"https://api.github.com/users/peterblazejewicz/orgs","repos_url":"https://api.github.com/users/peterblazejewicz/repos","events_url":"https://api.github.com/users/peterblazejewicz/events{/privacy}","received_events_url":"https://api.github.com/users/peterblazejewicz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-01T21:56:31Z","updated_at":"2015-01-12T20:19:26Z","closed_at":"2015-01-12T20:19:26Z","body":"Running `kpm build` in `HelloMvc` based projects results in the following warning:\r\n```\r\n/Users/piotrblazejewicz/projects/RetrogamesWeb/Controllers/HomeController.cs(13,21):\r\nwarning   CS0108: 'HomeController.User()' hides inherited member 'Controller.User'. \r\nUse the new keyword if hiding was intended.\r\n[...]\r\nBuild succeeded.\r\n    1 Warnings(s)\r\n    0 Error(s)\r\n```\r\nThe culprit line:\r\nhttps://github.com/aspnet/Home/blob/master/samples/HelloMvc/Controllers/HomeController.cs#L13\r\n\r\nI think it would be better to refactor this particular method to use other established C# convention removing that error along the lines:\r\nhttps://github.com/aspnet/Mvc/blob/dev/samples/MvcSample.Web/HomeController.cs#L129-L150\r\nthat is:\r\n\r\n```\r\npublic IActionResult Index()\r\n{\r\n    return View(CreateUser());\r\n}\r\n\r\npublic User CreateUser()\r\n{\r\n    User user = new User()\r\n    {\r\n        Name = \"My name\",\r\n        Address = \"My address\"\r\n    };\r\n\r\n    return user;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/69638279","html_url":"https://github.com/aspnet/Home/issues/253#issuecomment-69638279","issue_url":"https://api.github.com/repos/aspnet/Home/issues/253","id":69638279,"user":{"login":"Praburaj","id":2294732,"avatar_url":"https://avatars.githubusercontent.com/u/2294732?v=3","gravatar_id":"","url":"https://api.github.com/users/Praburaj","html_url":"https://github.com/Praburaj","followers_url":"https://api.github.com/users/Praburaj/followers","following_url":"https://api.github.com/users/Praburaj/following{/other_user}","gists_url":"https://api.github.com/users/Praburaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Praburaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praburaj/subscriptions","organizations_url":"https://api.github.com/users/Praburaj/orgs","repos_url":"https://api.github.com/users/Praburaj/repos","events_url":"https://api.github.com/users/Praburaj/events{/privacy}","received_events_url":"https://api.github.com/users/Praburaj/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T20:19:26Z","updated_at":"2015-01-12T20:19:26Z","body":"Fixed "}}