I have the following controller action:
[ChildActionOnly] public virtual PartialViewResult ListActions(int id) { var actions = meetingActionRepository.GetAllMeetingActions(id); return PartialView(actions); }
And the following action link (using t4MVC and razor syntax)
<p> @Html.RenderAction(MVC.MeetingActions.ListActions(Model.MeetingId)) </p>
However, this gives me an error:
cannot implicitly convert void type to object
As far as I can tell, the action of the controller is fine, so that can give me this error?
c # asp.net-mvc asp.net-mvc-3 t4mvc
MrBliz Feb 07 '11 at 10:50 2011-02-07 22:50
source share