SecondaryWaterSupplyAreaRegistration.cs 789 B

1234567891011121314151617181920212223242526
  1. using System.Web.Mvc;
  2. namespace LeaRun.Application.Web.Areas.SecondaryWaterSupply
  3. {
  4. public class SecondaryWaterSupplyAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "SecondaryWaterSupply";
  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. }