namespace vc
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "",
url: "",
defaults: new { controller = "Home", action = "Index", url = "index" }
);
routes.MapRoute(
name: "",
url: "{url}",
defaults: new { controller = "Card", action = "Index", url = (string)null }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}