Hi everyone,
I am making web site with areas. But problem form action. When I click save button url not found.
<form data-toggle="validator" name="form" role="form" method="post" action="../AboutAdd/AboutEkle">
AdminAreaRegistration
context.MapRoute(
"AboutAdd",
"admin/HakkimizdaEkle",
defaults: new { controller = "AboutAdd", action = "AboutAdd" });
context.MapRoute(
"admin_default",
"admin/{controller}/{action}/{id}",
new { Controller = "Home", action = "Index", id = UrlParameter.Optional }
);
RouteConfig
routes.MapRoute(
name: "Default",
url: "{language}/{controller}/{action}/{id}",
defaults: new { language = lang, controller = "Home", action = "Index", id = UrlParameter.Optional }
namespaces: new string[] { "ProjectName.Controllers" }
);