RouteProvider.cs 917 B

123456789101112131415161718192021222324252627282930313233343536
  1. using GreenTree.Nachtragsmanagement.Web.Framework.Mvc.Routes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Web.Mvc;
  8. using System.Web.Routing;
  9. namespace GreenTree.Nachtragsmanagement.Plugin.Test
  10. {
  11. public class RouteProvider : IRouteProvider
  12. {
  13. public int Priority
  14. {
  15. get { return 0; }
  16. }
  17. public void RegisterRoutes(RouteCollection routes)
  18. {
  19. routes.MapRoute(
  20. "GreenTree.Nachtragsmanagement.Plugin.Test.Index",
  21. "plugins/test/",
  22. new
  23. {
  24. controller = "Test",
  25. action = "Index"
  26. },
  27. new[]
  28. {
  29. "GreenTree.Nachtragsmanagement.Plugin.Test.Controllers"
  30. }
  31. );
  32. }
  33. }
  34. }