Esempio 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;
 }
 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);
 }