routeconfig.cs 加入如下新的程式段落 (傳入參數為 name,id)
routes.MapRoute(
name: "Hello",
url: "{controller}/{action}/{name}/{id}"
);
**在controllers folder 之下加入
// GET: /HelloWorld/Welcome/
public string Welcome(string name, int ID = 1)
{
return HttpUtility.HtmlEncode("Hello " + name + ", ID: " + ID);
}