public ActionResult Edit(long id) { var context = new ContextImplement(); var controller = new Implem.Pleasanter.Controllers.ItemsController(); var htmlOrJson = controller.Edit(context: context, id: id); if (!Request.IsAjaxRequest()) { ViewBag.HtmlBody = htmlOrJson; return(View()); } else { return(Content(htmlOrJson)); } }