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.

ContactAreaRegistration.cs 1.1KB

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