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.

ErrorAreaRegistration.cs 709B

1234567891011121314151617181920212223242526
  1. using System.Web.Mvc;
  2. namespace Teknik.Areas.Error
  3. {
  4. public class ErrorAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "Error";
  11. }
  12. }
  13. public override void RegisterArea(AreaRegistrationContext context)
  14. {
  15. context.MapSubdomainRoute(
  16. "Error.Http404", // Route name
  17. "*",
  18. "Error/404", // URL with parameters
  19. new { controller = "Error", action = "Http404" }, // Parameter defaults
  20. new[] { typeof(Controllers.ErrorController).Namespace }
  21. );
  22. }
  23. }
  24. }