I have the following controller action:
[ChildActionOnly] public virtual PartialViewResult ListActions(int id) { var actions = meetingActionRepository.GetAll
I had the same issue. What worked for me is to encapsulate the expression it in curly brackets.
@{Html.RenderPartial("viewName", Model);}