For immigration purposes, it makes absolutely no difference where you are married as long as the marriage is valid and bona fide.  If you are married according to the laws of the country where the marriage takes place, the marriage is recognized as legal everywhere else.