{"action":"created","issue":{"url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/1","repository_url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot","labels_url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/1/comments","events_url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/1/events","html_url":"https://github.com/JonathanHuss/DataDrivenBot/issues/1","id":165311729,"number":1,"title":"The parameters dictionary contains a null entry for parameter 'conversationID' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Index(Int32)' in 'DataDrivenBot.Admin.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.","user":{"login":"ADefWebserver","id":1857799,"avatar_url":"https://avatars.githubusercontent.com/u/1857799?v=3","gravatar_id":"","url":"https://api.github.com/users/ADefWebserver","html_url":"https://github.com/ADefWebserver","followers_url":"https://api.github.com/users/ADefWebserver/followers","following_url":"https://api.github.com/users/ADefWebserver/following{/other_user}","gists_url":"https://api.github.com/users/ADefWebserver/gists{/gist_id}","starred_url":"https://api.github.com/users/ADefWebserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADefWebserver/subscriptions","organizations_url":"https://api.github.com/users/ADefWebserver/orgs","repos_url":"https://api.github.com/users/ADefWebserver/repos","events_url":"https://api.github.com/users/ADefWebserver/events{/privacy}","received_events_url":"https://api.github.com/users/ADefWebserver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T12:47:12Z","updated_at":"2016-07-13T14:47:52Z","closed_at":null,"body":"When trying to run the DataDrivenBot.Admin project I get: \r\n\r\n> The parameters dictionary contains a null entry for parameter 'conversationID' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Index(Int32)' in 'DataDrivenBot.Admin.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.\r\n> Parameter name: parameters \r\n\r\nI created the database and even tried changing the controller method (that was throwing the error) to:\r\n\r\n```\r\n        public ActionResult Index(int? conversationID)\r\n        {\r\n            Diagram model = new Diagram();\r\n            if (conversationID != null)\r\n            {\r\n                model = GetDiagramModel(conversationID.Value);\r\n            }\r\n            else\r\n            {\r\n                model = GetDiagramModel(0);\r\n            }\r\n\r\n            return View(model);\r\n        }\r\n```\r\nBut then I got errors because it is expecting the database to have data.\r\n"},"comment":{"url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/comments/232378779","html_url":"https://github.com/JonathanHuss/DataDrivenBot/issues/1#issuecomment-232378779","issue_url":"https://api.github.com/repos/JonathanHuss/DataDrivenBot/issues/1","id":232378779,"user":{"login":"JonathanHuss","id":11560219,"avatar_url":"https://avatars.githubusercontent.com/u/11560219?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanHuss","html_url":"https://github.com/JonathanHuss","followers_url":"https://api.github.com/users/JonathanHuss/followers","following_url":"https://api.github.com/users/JonathanHuss/following{/other_user}","gists_url":"https://api.github.com/users/JonathanHuss/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanHuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanHuss/subscriptions","organizations_url":"https://api.github.com/users/JonathanHuss/orgs","repos_url":"https://api.github.com/users/JonathanHuss/repos","events_url":"https://api.github.com/users/JonathanHuss/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanHuss/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T14:47:52Z","updated_at":"2016-07-13T14:47:52Z","body":"It's not production ready code.  It's just a concept, which means some of the data was loaded manually into the database during the exploration of the concept .  If it were to be productionized, it would definitely need some initialization code for an empty database.  Try adding a ConversationTemplate record to your database and then pass the ID of that ConversationTemplate when you load the diagram page, something like this (use whatever address and ID is relevant for you):  http://localhost:1444/?conversationID=1"}}
{"actor":{"display_login":"JonathanHuss"}}