This is my code:

routes.MapRouteLowercase(
                name: "productadd",
                url: "product/add",
                defaults: new
                {
                    controller = "Product",
                    action = "Add"
                }
                    , namespaces: new[] { "project.Controllers" });
            routes.MapRouteLowercase(
                name: "productlike",
                url: "product/like",
                defaults: new
                {
                    controller = "Product",
                    action = "Like"
                }
                    , namespaces: new[] { "project.Controllers" });
            routes.MapRouteLowercase(
                name: "productshow",
                url: "product/{id}/{seoName}",
                defaults: new
                {
                    controller = "Product",
                    action = "Get",
                    id = UrlParameter.Optional,
                    seoName = UrlParameter.Optional
                }
                    , namespaces: new[] { "project.Controllers" });

I want a solution for writing less codes, actually a template for productshow and another template for product actions

Related posts

Recent Viewed