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 ChildrenField(int id) { int count = FormdetailBO.GetInstance().GetCount(id); ChildrenFieldUIModel model = new ChildrenFieldUIModel() { ID = id, Count = count, ClassName = "" }; return(View("ChildrenField", model)); }
public ActionResult Create(FormdetailDataModel formdetail) { FormdetailBO.GetInstance().Create(formdetail); if (Session["formdetailParentID"] != null) { return(RedirectToAction("Index", new { id = Convert.ToInt32(Session["formdetailParentID"]) })); } else { return(RedirectToAction("Index")); } }
public ActionResult Delete(int id) { FormdetailBO.GetInstance().Delete(id); return(Json(new { success = true }, JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(int id) { return(View(FormdetailBO.GetInstance().Get(id))); }
// // GET: /ManageFormdetail/ public ActionResult Index(int id = 0) { return(View(FormdetailBO.GetInstance().GetAll(id))); }