示例#1
0
文件: Controller.cs 项目: tohfe/Olive
        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));
            }
        }
示例#2
0
文件: Controller.cs 项目: tohfe/Olive
 /// <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));
 }
示例#3
0
文件: Controller.cs 项目: tohfe/Olive
 protected JsonResult Do(WindowAction action)
 {
     JavascriptActions.Do(action);
     return(JsonActions());
 }
示例#4
0
文件: Controller.cs 项目: tohfe/Olive
 public ActionResult AjaxRedirect(string url, string target = null)
 {
     JavascriptActions.Redirect(url, withAjax: true, target: target);
     return(JsonActions());
 }
示例#5
0
文件: Controller.cs 项目: tohfe/Olive
 protected JsonResult AddAction(object action)
 {
     JavascriptActions.Add(action);
     return(JsonActions());
 }
示例#6
0
 public ActionResult AjaxRedirect(string url)
 {
     JavascriptActions.Redirect(url, withAjax: true);
     return(JsonActions());
 }