Пример #1
0
 public ActionResult Exceptions()
 {
     var context = System.Web.HttpContext.Current;
     var page = new HandlerFactory().GetHandler(context, Request.RequestType, Request.Url.ToString(), Request.PathInfo);
     page.ProcessRequest(context);
     return null;
 }
Пример #2
0
        public ActionResult InvokeErrorHandler(string resource, string subResource)
        {
            var context = System.Web.HttpContext.Current;
            var factory = new HandlerFactory();

            var page = factory.GetHandler(context, Request.RequestType, Request.Url.ToString(), Request.PathInfo);
            page.ProcessRequest(context);
            
            return null;
        }
Пример #3
0
        public ActionResult Index()
        {
            if (!AdminBusiness.IsAdmin(User.Identity.Name))
            {
                return RedirectToAction("Rankings", "Players");
            }

            var context = System.Web.HttpContext.Current;
            var page = new HandlerFactory().GetHandler(context, Request.RequestType, Request.Url.ToString(), Request.PathInfo);
            page.ProcessRequest(context);

            return null;
        }