public string Post(ValueModel value) { if (dicAppSet == null || dicAppSet.Count == 0) { general gn = new general(); dicAppSet = gn.ReadAppseting(); if (dicAppSet == null || dicAppSet.Count == 0) { return("{\"result\":\"ERROR\",\"data\":[{\"status\":\"Đọc appsetting lỗi\"}]}"); } } if (dicProce == null || dicProce.Count == 0) { general gn = new general(); dicProce = gn.ReadFileJson(dicAppSet); if (dicProce == null || dicProce.Count == 0) { return("{\"result\":\"ERROR\",\"data\":[{\"status\":\"Đọc file json mã hóa procedue lỗi\"}]}"); } } Db_Access ac = new Db_Access(); var check = ac.checkRequertLienTuc(HttpContext.Current, dicAppSet, value.config, value.para); if (!check) { return("{\"result\":\"ERROR\",\"data\":[{\"status\":\"Không cho phép request liên tục\"}]}"); } if (value == null || value.config == null) { return("{\"result\":\"ERROR\",\"data\":[{\"status\":\"Kiểm tra lại định dạng json đầu vào\"}]}"); } var json = ""; gnSql sql = new gnSql(); json = sql.ExcuteStores(value.config, value.para, dicAppSet, dicProce); return(json); }