Sorry for the stupid question , but how can I implement the following thing ?
I Have a controller Named ServerMonitor , It has only one Action
public ActionResult Index()
{
return Content(WebUtility.ServerID);
}
How can I execute the following Action typing
http://mydom.com/ServerMonitor instead of http://mydom.com/ServerMonitor/Index
You need to make the
{action}parameter in the route URL default to"index".The standard route defined in the ASP.Net MVC template already does this.