0
を起動されません。ASP.NET mvc4コントローラのアクションは、私はにHomeControllerに定義された以下のメソッドを持っている
アプリケーションを実行して両方のボタンをクリックすると、コントローラの作成アクションが常に呼び出されます。ここでの取引は何ですか?
私は次のように定義されたデフォルトのルーティングで働いています:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}