Why is this code correct:
@{
Html.RenderAction("PostImagesForPost", "BlogPost", new { id = Model.ID });
}
And this code
@Html.RenderAction("PostImagesForPost", "BlogPost", new { id = Model.ID })
through this error message:
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
Why it is so important to use the '{' '}'?
Thanks