public bool ValidaRFC(int Id_Acr, string Acr_RFC, string Conexion) { bool Result = false; using (dbAccess oDB = new dbAccess(Conexion)) { try { Result = (bool)oDB.spExecScalar( "spCatAcreedor_ValidaRFC", new SqlParameter("@Id_Acr", Id_Acr), new SqlParameter("@Acr_RFC", Acr_RFC) ); } catch (Exception ex) { throw ex; } finally { oDB.Dispose(); } } return(Result); }