private void ValidateSeries() { string prefix = Request["prefix"]; string digits = Request["digits"]; int kioskid = Convert.ToInt32(Request["kioskid"]); // int res = 0; JsonBridge <String> ins = new JsonBridge <String>(); try { res = Booklet.ValidateSeries(prefix, digits, kioskid); } catch (Exception) { res = 0; } ins.Valid = res; string output = JsonConvert.SerializeObject(ins); Response.Write(output); }