If you try this you'll get this:
Use of IHtmlHelper.RenderPartial may result in application deadlocks. Consider using <partial> Tag Helper or IHtmlHelper.RenderPartialAsync.
The better way to go is:
@{ await Html.RenderPartialAsync("_MyPartial", myModel; }
No comments:
Post a Comment