Beispiel #1
0
        public ActionResult PagesList(PagesFilter request)
        {
            request.SetDefaultPaging();
            var model   = GetCommand <GetPagesListCommand>().ExecuteCommand(request);
            var success = model != null;

            return(WireJson(success, model));
        }
Beispiel #2
0
        public ActionResult SelectPage(PagesFilter request)
        {
            request.SetDefaultPaging();
            var model   = GetCommand <GetPagesListCommand>().ExecuteCommand(request);
            var success = model != null;

            var view = RenderView("SelectPage", model);

            return(ComboWireJson(success, view, model, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public ActionResult Pages(PagesFilter request)
        {
            request.SetDefaultPaging();
            var model   = GetCommand <GetPagesListCommand>().ExecuteCommand(request);
            var success = model != null;

            var view = RenderView("Pages", model);
            var json = new
            {
                Tags            = request.Tags,
                IncludeArchived = request.IncludeArchived
            };

            return(ComboWireJson(success, view, json, JsonRequestBehavior.AllowGet));
        }