纽威
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.

25 lines
744 B

3 years ago
  1. using System.Web.Mvc;
  2. namespace NFine.Web.Areas.SystemSecurity
  3. {
  4. public class SystemSecurityAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "SystemSecurity";
  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[] { "NFine.Web.Areas." + this.AreaName + ".Controllers" }
  20. );
  21. }
  22. }
  23. }