public ActionResult DeleteOILType(string keyValue) { using (var app = new OILTypeApp()) { var data = app.DeleteOILType(keyValue); return(Content(data.ToJson())); } }
public ActionResult Sumbit(T_OILType entity, string keyValue) { using (var app = new OILTypeApp()) { var data = app.SumbitOILType(entity, keyValue); return(Content(data.ToJson())); } }
public ActionResult GetFormJson(string keyValue) { using (var app = new OILTypeApp()) { var data = app.GetFormJson(keyValue); return(Content(data.ToJson())); } }
public ActionResult GetOILTypes() { using (var app = new OILTypeApp()) { var data = app.GetOILTypes(); return(Content(data.ToJson())); } }
// GET: YdkManage/OILType public ActionResult GetGridJson(Pagination pagination, string keyword) { using (var app = new OILTypeApp()) { var data = new { rows = app.GetGridJson(pagination, keyword), total = pagination.total, page = pagination.page, records = pagination.records }; return(Content(data.ToJson())); } }