The next generation of the Teknik Services. Written in ASP.NET.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ProfileAreaRegistration.cs 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Web.Mvc;
  2. namespace Teknik.Areas.Profile
  3. {
  4. public class ProfileAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "Profile";
  11. }
  12. }
  13. public override void RegisterArea(AreaRegistrationContext context)
  14. {
  15. context.MapSubdomainRoute(
  16. "Profile_dev", // Route name
  17. "dev",
  18. "Profile/{controller}/{action}", // URL with parameters
  19. new { controller = "Profile", action = "Index" }, // Parameter defaults
  20. new[] { typeof(Controllers.ProfileController).Namespace }
  21. );
  22. context.MapSubdomainRoute(
  23. "Profile_default", // Route name
  24. "profile",
  25. "{controller}/{action}", // URL with parameters
  26. new { controller = "Profile", action = "Index" }, // Parameter defaults
  27. new[] { typeof(Controllers.ProfileController).Namespace }
  28. );
  29. }
  30. }
  31. }