Example #1
0
        public ActionResult Redirect(string url, string target = null)
        {
            JavascriptActions.Redirect(url, withAjax: IsMicrofrontEnd, target: target);

            if (Request.IsAjaxCall() || target.HasValue())
            {
                return(JsonActions());
            }
            else
            {
                return(base.Redirect(url));
            }
        }
Example #2
0
 /// <summary>
 /// Creates a ViewResult object by using the model that renders a view to the response.
 /// </summary>
 public override ViewResult View(string viewName, object model)
 {
     JavascriptActions.ScheduleNotifications();
     return(base.View(viewName, model));
 }
Example #3
0
 protected JsonResult Do(WindowAction action)
 {
     JavascriptActions.Do(action);
     return(JsonActions());
 }
Example #4
0
 public ActionResult AjaxRedirect(string url, string target = null)
 {
     JavascriptActions.Redirect(url, withAjax: true, target: target);
     return(JsonActions());
 }
Example #5
0
 protected JsonResult AddAction(object action)
 {
     JavascriptActions.Add(action);
     return(JsonActions());
 }
Example #6
0
 public ActionResult AjaxRedirect(string url)
 {
     JavascriptActions.Redirect(url, withAjax: true);
     return(JsonActions());
 }