Ejemplo n.º 1
0
        public string GridRows(long id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishesController();
            var json       = controller.GridRows(context: context, id: id);

            return(json);
        }
Ejemplo n.º 2
0
        public ActionResult SelectSearchDropDown(long id = 0)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishesController();
            var json       = controller.SelectSearchDropDown(context: context, id: id);

            return(Content(json));
        }
Ejemplo n.º 3
0
        public ActionResult Edit(long id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.PublishesController();
            var htmlOrJson = controller.Edit(context: context, id: id);

            if (!context.Ajax)
            {
                ViewBag.HtmlBody = htmlOrJson;
                return(View());
            }
            else
            {
                return(Content(htmlOrJson));
            }
        }