public JsonResult AllFormList(string CompanyId) { RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster(); CreateTableDoList createTableDoList = createFormMaster.AllCreateForm(CompanyId); return(Json(new { Response = createTableDoList }, JsonRequestBehavior.AllowGet)); }
public JsonResult FormEdit(string eid, string formid) { RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster(); CreateTableDoList EditDynamicDataList = createFormMaster.EditForm(eid, formid); return(Json(new { Response = EditDynamicDataList }, JsonRequestBehavior.AllowGet)); // var data = FormFieldController.GetCategory(); }
public JsonResult UniqueFieldCheck(string Formid, string fieldid, string Value) { RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster(); var value = createFormMaster.IsValueExist(Formid, fieldid, Value); if (value == true) { return(Json(new { Response = "OK" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { Response = "" }, JsonRequestBehavior.AllowGet)); } }
public JsonResult FormCreate(CreateFormTableDo createFormTableDo) { RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster(); createFormMaster.Addform(createFormTableDo); return(Json(new { Response = "OnSuccess" }, JsonRequestBehavior.AllowGet)); }