Using ASP.NET MVC 4 I have two Index method in the same controller but with different signatures.
public ActionResult Index()
{
//...
}
public ActionResult Index(ManageOvertimesViewModel model)
{
//...
}
I don't understand why am I getting this error. (If I give a HttpPost
attribute than it work so probably I will do, but I don't understand why it is not working.)