Пример #1
0
        public ActionResult Edit(int id)
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.UsersController();
            var htmlOrJson = controller.Edit(context: context, id: id);

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