Is is possible to put two actions in the controller with the same name and same no. of parameters and parameter type as shown below.
[HttpGet] public ActionResult Index(int x) { return View(); } [HttpPost] public ActionResult Index(int a) { return View(); }
[HttpGet]
public ActionResult Index(int x)
{
return View();
}
[HttpPost]
public ActionResult Index(int a)
Give there Httpverbs different
Yes because you are using different verbs Get and Post, if you wanted two gets or two posts you could change the route