You need to use await to call asynchronous methods. ASP.NET 5 adds the ability to use await in Razor:
@{await Html.RenderPartialAsync("_MyPartial", Model);}
You need to use await to call asynchronous methods. ASP.NET 5 adds the ability to use await in Razor:
@{await Html.RenderPartialAsync("_MyPartial", Model);}