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)); } }
/// <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)); }
protected JsonResult Do(WindowAction action) { JavascriptActions.Do(action); return(JsonActions()); }
public ActionResult AjaxRedirect(string url, string target = null) { JavascriptActions.Redirect(url, withAjax: true, target: target); return(JsonActions()); }
protected JsonResult AddAction(object action) { JavascriptActions.Add(action); return(JsonActions()); }
public ActionResult AjaxRedirect(string url) { JavascriptActions.Redirect(url, withAjax: true); return(JsonActions()); }