Questions tagged «t4mvc»

4
无法将类型void隐式转换为对象。.NET MVC PartialViewResult
我有以下控制器操作: [ChildActionOnly] public virtual PartialViewResult ListActions(int id) { var actions = meetingActionRepository.GetAllMeetingActions(id); return PartialView(actions); } 以及以下操作链接(使用t4MVC和razor语法) <p> @Html.RenderAction(MVC.MeetingActions.ListActions(Model.MeetingId)) </p> 但这给了我错误: 无法将类型void隐式转换为对象 据我所知,控制器动作正常,那么什么会给我这个错误呢?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.