Ejemplo n.º 1
0
 public override RouteData GetRouteData(HttpContextBase httpContext)
 {
     if (httpContext.Request.QueryString.AllKeys.Contains("controller") &&
     httpContext.Request.QueryString.AllKeys.Contains("controller") )
     {
     string controller = httpContext.Request.QueryString["controller"];
     string action = httpContext.Request.QueryString["action"];
     IRouteHandler routeHandler = new MvcRouteHandler();
     return new RouteData(controller, action, routeHandler);
     }
     return null;
 }
Ejemplo n.º 2
0
 public override RouteData GetRouteData(HttpContextBase httpContext)
 {
     if (httpContext.Request.QueryString.AllKeys.Contains("controller") &&
         httpContext.Request.QueryString.AllKeys.Contains("controller"))
     {
         string        controller   = httpContext.Request.QueryString["controller"];
         string        action       = httpContext.Request.QueryString["action"];
         IRouteHandler routeHandler = new MvcRouteHandler();
         return(new RouteData(controller, action, routeHandler));
     }
     return(null);
 }