public static int ChangeBarcode(string oldBarcode, string newBarcode) { dbConnect connect = new dbConnect(); int ret = connect.ChangeBarcode(oldBarcode, newBarcode); connect.Close(); return(ret); }