Also, as far as I am aware, other than 1 district in Brooklyn whose votes were not counted in time in the Dem primary, there was hardly anything "corrupt" about either party's primary (and even that district went towards the winner anyways, and wouldn't have made a difference if every vote went in the opposite direction).
While not corrupt, or illegal, caucuses in US primaries are extremely undemocratic instruments, however, that is the exact opposite of what is considered the best method of voting in a democracy (secret ballot).