public static bool CancelPayment(int payref) { dbConnect con = new dbConnect(); bool ret = false; try { ret = con.CancelPayment(payref); } catch { } con.Close(); return(ret); }