It looks like you are trying to map a default route that:
RouteTable.Routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });
To do this, change the parameter name in ActionResult to id :
public ActionResult Details(int id)
Otherwise, you have to use the url:
http:
source share