compiles but does not work:
public class ProductController : Controller
{
public ActionResult List(int a)
{
return View();
}
public ActionResult List(int a, int b)
{
return View();
}
}
getting error:
The current request for action 'List' on controller type 'ProductController' is ambiguous between the following action methods: System.Web.Mvc.ActionResult List(Int32) on type Shop.Controllers.ProductController System.Web.Mvc.ActionResult List(Int32, Int32) on type Shop.Controllers.ProductController
I'm interested in the reason why it was not possible to implement.