protected override void RegisterApp(MrCMSAppRegistrationContext context) { context.MapAreaRoute("Newsletter Admin controllers", "Admin", "Admin/Apps/NewsletterBuilder/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }, new[] { typeof(NewsletterController).Namespace }); }
protected override void RegisterApp(MrCMSAppRegistrationContext context) { context.MapAreaRoute("Commenting admin controllers", "Admin", "Admin/Apps/Commenting/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }, new[] { typeof(CommentingSettingsController).Namespace }); context.MapRoute("Add Comments Form", "comments/add/{id}", new { controller = "Comments", action = "Add" }, new[] { typeof(CommentsController).Namespace }); context.MapRoute("Show Comments", "comments/Show/{id}", new { controller = "Comments", action = "Show" }, new[] { typeof(CommentsController).Namespace }); context.MapRoute("Guest Comment", "comments/Post/Guest", new { controller = "Comments", action = "Guest" }, new[] { typeof(CommentsController).Namespace }); context.MapRoute("Logged in Comment", "comments/Post/User", new { controller = "Comments", action = "LoggedIn" }, new[] { typeof(CommentsController).Namespace }); context.MapRoute("Comment - Upvote", "comments/upvote", new { controller = "CommentVoting", action = "Upvote" }, new[] { typeof(CommentVotingController).Namespace }); context.MapRoute("Comment - Downvote", "comments/downvote", new { controller = "CommentVoting", action = "Downvote" }, new[] { typeof(CommentVotingController).Namespace }); context.MapRoute("Comment - Report", "comments/report", new { controller = "CommentReporting", action = "Report" }, new[] { typeof(CommentReportingController).Namespace }); context.MapRoute("Unique Username Check", "comments/username-check", new { controller = "CommentingUserAccount", action = "IsUniqueUsername" }, new[] { typeof(CommentingUserAccountController).Namespace }); context.MapRoute("Update Username", "comments/update-username", new { controller = "CommentingUserAccount", action = "UpdateUsername" }, new[] { typeof(CommentingUserAccountController).Namespace }); }
public static void RegisterRoutes(MrCMSAppRegistrationContext context) { context.MapAreaRoute("Admin controllers", "Admin", "Admin/Apps/Ecommerce/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }, new[] { typeof(ProductController).Namespace }); context.MapRoute("Product Variant - GetPriceBreaksForProductVariant", "Apps/Ecommerce/ProductVariant/GetPriceBreaksForProductVariant", new { controller = "ProductVariant", action = "GetPriceBreaksForProductVariant" }); MapCartRoutes(context); MapCheckoutRoutes(context); MapPaymentMethodRoutes(context); MapRemoteValidationRoutes(context); MapWishlistRoutes(context); MapUserAccount(context); context.MapRoute("User Account Orders", "Apps/Ecommerce/UserAccount/UserAccountOrders", new { controller = "UserAccount", action = "UserAccountOrders" }); context.MapRoute("User Account - download Order PDF", "Apps/Ecommerce/OrderPdf/ExportOrderToPdf/{id}", new { controller = "OrderPdf", action = "ExportOrderToPdf" }, new[] { typeof(OrderPdfController).Namespace }); context.MapRoute("Product Search - Query", "search/query", new { controller = "ProductSearch", action = "Query" }, new[] { typeof(ProductSearchController).Namespace }); context.MapRoute("Product Search - Results", "search/results", new { controller = "ProductSearch", action = "Results" }, new[] { typeof(ProductSearchController).Namespace }); context.MapRoute("Brand Search - Query", "brand/search/query", new { controller = "Brand", action = "Query" }, new[] { typeof(BrandController).Namespace }); context.MapRoute("Brand Search - Results", "brand/search/results", new { controller = "Brand", action = "Results" }, new[] { typeof(BrandController).Namespace }); context.MapRoute("Category Container - Categories", "Apps/Ecommerce/CategoryContainer/Categories", new { controller = "CategoryContainer", action = "Categories" }, new[] { typeof(ProductContainer).Namespace }); context.MapRoute("Export Google Base Feed", "export/google-base-feed", new { controller = "GoogleBaseFeed", action = "ExportProductsToGoogleBaseInResponse" }, new[] { typeof(GoogleBaseFeedController).Namespace }); context.MapRoute("Products - Back in stock request", "Apps/Ecommerce/Product/BackInStock", new { controller = "Product", action = "BackInStock" }, new[] { typeof(ProductController).Namespace }); context.MapRoute("Download Product", "digital-download/{guid}/{id}", new { controller = "DownloadOrderedFile", action = "Download" }, new[] { typeof(DownloadOrderedFileController).Namespace }); context.MapRoute("Product - Get Variant Details", "product/variant-details/{id}", new { controller = "ProductVariant", action = "Details" }, new[] { typeof(ProductVariantController).Namespace }); //Product Reviews context.MapRoute("Product Review", "Apps/Ecommerce/ProductReview/Add", new { controller = "ProductReview", action = "Add" }, new[] { typeof(ProductReviewController).Namespace }); context.MapRoute("Product Reviews Paging", "Apps/Ecommerce/ProductVariant/ProductReviews", new { controller = "ProductVariant", action = "ProductReviews" }); context.MapRoute("Product Review Helpfulness Vote Yes", "Apps/Ecommerce/ProductReview/HelpfulnessVotes", new { controller = "ProductReview", action = "HelpfulnessVotes" }, new[] { typeof(ProductReviewController).Namespace }); context.MapRoute("Product Review Helpfulness Vote No", "Apps/Ecommerce/ProductReview/UnhelpfulnessVotes", new { controller = "ProductReview", action = "UnhelpfulnessVotes" }, new[] { typeof(ProductReviewController).Namespace }); // Public Routes context.MapRoute("Generate Contact Us Map", "get-contact-map", new { controller = "ContactUs", action = "GenerateMap" }, new[] { typeof(ContactUsController).Namespace }); }