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.

PrivacyAreaRegistration.cs 1.1KB

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