The RenderAction is working just fine but as soon as I surround it with a if statement I get a compile error:
@if (@Model.IsConfigurationAllow)
{
@{ Html.RenderAction("Save"); } // CS1501: No overload for method 'Write' takes 0 arguments
}
More general question where can I found the grammar for the Razor view syntax?
@{}block code.Html.RenderAction("Save");is enough.