{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/61","repository_url":"https://api.github.com/repos/aspnet/AspNetWebStack","labels_url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/61/comments","events_url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/61/events","html_url":"https://github.com/aspnet/AspNetWebStack/issues/61","id":258125974,"node_id":"MDU6SXNzdWUyNTgxMjU5NzQ=","number":61,"title":"MVC5: Asynchronous child actions Not supported","user":{"login":"sanilpaul","id":484817,"node_id":"MDQ6VXNlcjQ4NDgxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/484817?v=4","gravatar_id":"","url":"https://api.github.com/users/sanilpaul","html_url":"https://github.com/sanilpaul","followers_url":"https://api.github.com/users/sanilpaul/followers","following_url":"https://api.github.com/users/sanilpaul/following{/other_user}","gists_url":"https://api.github.com/users/sanilpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/sanilpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanilpaul/subscriptions","organizations_url":"https://api.github.com/users/sanilpaul/orgs","repos_url":"https://api.github.com/users/sanilpaul/repos","events_url":"https://api.github.com/users/sanilpaul/events{/privacy}","received_events_url":"https://api.github.com/users/sanilpaul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-15T18:29:18Z","updated_at":"2018-12-05T08:01:45Z","closed_at":"2017-10-13T21:02:56Z","author_association":"NONE","body":"what is the recommended way to execute asynchronous actions (database access) through child actions in MVC5?  I understand its very subjective to what i do in the child action. In my case, its only async queries to sql server using EF6. \r\n\r\nIs wrapping in a task.run has any side effects in this case or is there any better way microsoft recommends other than changing to Synchronous? \r\n```csharp\r\n@Html.Action(\"SampleChildAction)\r\n\r\npublic PartialViewResult SampleChildAction()\r\n{\r\n    Task.Run(async () => { await asyncMethod(); }).Result; \r\n    return PartialView(\"_SampleChildActionView\");\r\n}\r\n```\r\nI couldn't locate anything guidance from microsoft. I would appreciate any help.  \r\nhttps://justsimplycode.com/2016/09/04/child-action-in-mvc-5-does-not-support-async/\r\nhttps://github.com/aspnet/Home/issues/343\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/comments/444393723","html_url":"https://github.com/aspnet/AspNetWebStack/issues/61#issuecomment-444393723","issue_url":"https://api.github.com/repos/aspnet/AspNetWebStack/issues/61","id":444393723,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDM5MzcyMw==","user":{"login":"benmccallum","id":157336,"node_id":"MDQ6VXNlcjE1NzMzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/157336?v=4","gravatar_id":"","url":"https://api.github.com/users/benmccallum","html_url":"https://github.com/benmccallum","followers_url":"https://api.github.com/users/benmccallum/followers","following_url":"https://api.github.com/users/benmccallum/following{/other_user}","gists_url":"https://api.github.com/users/benmccallum/gists{/gist_id}","starred_url":"https://api.github.com/users/benmccallum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmccallum/subscriptions","organizations_url":"https://api.github.com/users/benmccallum/orgs","repos_url":"https://api.github.com/users/benmccallum/repos","events_url":"https://api.github.com/users/benmccallum/events{/privacy}","received_events_url":"https://api.github.com/users/benmccallum/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T08:01:45Z","updated_at":"2018-12-05T08:01:45Z","author_association":"NONE","body":"Dude, best timing for an answer here. Had this issue just yesterday. Thanks @alohaninja !"}}
{"actor":{"display_login":"benmccallum"}}