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); }
public string Create() { var context = new ContextImplement(); var controller = new Pleasanter.Controllers.DeptsController(); var json = controller.Create(context: context); return(json); }
public string SelectSearchDropDown() { var context = new ContextImplement(); var controller = new Pleasanter.Controllers.DeptsController(); var json = controller.SelectSearchDropDown(context: context); return(json); }
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); }
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()); }
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)); } }