In my index.cshtml file I'm trying to render a partial view, but I'm having some problems doing this with inline razor syntax.
The following works and renders the partial view:
@{ Html.RenderPartial("_View", Model.model); }
The following gives an error:
@Html.RenderPartial("_View", Model.model)
The error is:
Argument 1: cannot convert from 'void' to 'object'
Is there something I'm misunderstanding about inline code in razor?