This question already has an answer here:
- Can you overload controller methods in ASP.NET MVC? 16 answers
I was trying to overload controller method or action I am able to write controller action and compile but still I am not getting result.
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
public ActionResult Contact(string str)
{
ViewBag.Message = "Your contact page by overloaded method";
return View();
}
but still I am getting following Error Server Error in '/' Application