WarehouseManageAreaRegistration.cs 846 B

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