The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
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.

AboutAreaRegistration.cs 764B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using System.Web.Mvc;
  3. namespace Teknik.Areas.About
  4. {
  5. public class AboutAreaRegistration : AreaRegistration
  6. {
  7. public override string AreaName
  8. {
  9. get
  10. {
  11. return "About";
  12. }
  13. }
  14. public override void RegisterArea(AreaRegistrationContext context)
  15. {
  16. context.MapSubdomainRoute(
  17. "About.Index", // Route name
  18. new List<string>() { "dev", "about" },
  19. "", // URL with parameters
  20. new { controller = "About", action = "Index" }, // Parameter defaults
  21. new[] { typeof(Controllers.AboutController).Namespace }
  22. );
  23. }
  24. }
  25. }