public ActionResult View(int id) { FormDataModel form = FormBO.GetInstance().Get(id); FormUIModel model = new FormUIModel(); model.Name = form.Name; model.Fields = FormdetailBO.GetInstance().GetByForm(id); return(View(model)); }
public ActionResult FormdetailChildrenField(int id) { int count = FormBO.GetInstance().GetFormdetailCount(id); ChildrenFieldUIModel model = new ChildrenFieldUIModel() { ID = id, Count = count, ClassName = "Formdetail" }; return(View("ChildrenField", model)); }
public ActionResult Create(FormDataModel form) { FormBO.GetInstance().Create(form); if (Session["ParentID"] != null) { return(RedirectToAction("Index", new { id = Convert.ToInt32(Session["ParentID"]) })); } else { return(RedirectToAction("Index")); } }
public ActionResult Delete(int id) { FormBO.GetInstance().Delete(id); return(Json(new { success = true }, JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(int id) { return(View(FormBO.GetInstance().Get(id))); }
// // GET: /ManageForm/ public ActionResult Index(int id = 0) { return(View(FormBO.GetInstance().GetAll(id))); }
// // GET: /Form/ public ActionResult Index() { return(View(FormBO.GetInstance().GetAll())); }