NBManageAreaRegistration.cs 742 B

123456789101112131415161718192021222324252627
  1. using System.Web.Mvc;
  2. namespace LeaRun.Application.Web.Areas.NBManage
  3. {
  4. public class NBManageAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "NBManage";
  11. }
  12. }
  13. public override void RegisterArea(AreaRegistrationContext context)
  14. {
  15. context.MapRoute(
  16. this.AreaName + "_Default",
  17. this.AreaName + "/{controller}/{action}/{id}",
  18. new { area = this.AreaName, controller = "Home", action = "Index", id = UrlParameter.Optional },
  19. new string[] { "LeaRun.Application.Web.Areas." + this.AreaName + ".Controllers" }
  20. );
  21. }
  22. }
  23. }