예제 #1
0
        public string DeleteComment(int id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var json       = controller.DeleteComment(context: context, id: id);

            return(json);
        }
예제 #2
0
        public string Create()
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var json       = controller.Create(context: context);

            return(json);
        }
예제 #3
0
        public string SelectSearchDropDown()
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var json       = controller.SelectSearchDropDown(context: context);

            return(json);
        }
예제 #4
0
        public string Histories(int id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var json       = controller.Histories(context: context, id: id);

            return(json);
        }
예제 #5
0
        public ActionResult New(long id = 0)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var html       = controller.New(context: context, id: id);

            ViewBag.HtmlBody = html;
            return(View());
        }
예제 #6
0
        public ActionResult Edit(int id)
        {
            var context    = new ContextImplement();
            var controller = new Pleasanter.Controllers.DeptsController();
            var htmlOrJson = controller.Edit(context: context, id: id);

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