if as per railways conduct service rules prior permission is necessary to marry a foreigner you should have obtained permission of the employer .
21.Restrictions Regarding Marriage.—(1) No railway servant shall
enter into, or contract, a marriage with a person having spouse living: and,
(2) No railway servant, having a spouse living shall enter into, or
contract, a marriage with any person .
(3) A railway servant who has married or married a person other than
of Indian Nationality shall forthwith intimate the fact to the
Government. Provided that the government may permit a railway
servant to enter into, or contract, any such marriage as isreferred
to in clause (1) or clause (2), if it is satisfied that—
(a) such marriage is permissible under the personal law applicable
tosuch railway servant and other party to the marriage ; and
(b) there are other grounds for so doing