Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
At this moment, I am register at AreaRegistraion as below:-

 public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get { return "Admin"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {

                    context.MapRoute(
                        "custom_admin_order",
                        "Admin/Order/List/",
                        new { controller = "CustomOrder", action = "List", area = "Admin", id = "" },
                        new[] { "Misc.CustomAdminOrder.Controllers" });

        }
    }



It is working, but sometime doesn't work and need to restart the application several times to make it work.

So right now I need a better way to make it 100% work. 


What I have tried:

Register custome view engine ,register route in admin by inherit area registration class.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900