Hi, please make note of the following points:
○During Lok Sabha elections, the code is applicable throughout the country.
○During Vidhan Sabha elections, the code is applicable in the entire State.
○During bye-elections, the code is applicable in the entire district or districts in which the constituency falls.
Also, the code clearly specifies that candidates/ministers should not make apppointments in govt/public undertakings which may have the effect of influencing the voters in favour of the party in power.
You should be able to judge the nature of appointment using these factors and know whether or not it would be unlawful.