You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
797 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. namespace NFine.Web.Areas.Encrypt
  7. {
  8. public class EncryptAreaRegistration : AreaRegistration
  9. {
  10. public override string AreaName
  11. {
  12. get
  13. {
  14. return "Encrypt";
  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[] { "NFine.Web.Areas." + this.AreaName + ".Controllers" }
  24. );
  25. }
  26. }
  27. }