【发布时间】:2014-12-20 18:18:44
【问题描述】:
我收到一个关于我的函数不明确的错误
当前对控制器类型的操作“索引”请求 'ProductController' 在以下操作方法之间不明确: System.Web.Mvc.ActionResult Index(bconn.ui.Models.Vm, Int32, Int32) on 键入 bconn.ui.Controllers.ProductController System.Web.Mvc.ActionResult Index(System.String, System.String) on 输入 bconn.ui.Controllers.ProductController
如您所见,一个控制器具有以下签名
public ActionResult Index(Vm model, int startIndex, int pageSize)
还有一个
public ActionResult Index(string selected, string nothing)
由于一个有int 值,这些值不能为空,我看不出这里有什么歧义?
【问题讨论】: