Check what was stipulated on your signed contract. NOC depends upon your employer if they want to release you or not, but basically since you're new i don't think they will give you unless you finished 2years. If you resign, you will bear the cost of the expenses the company paid for you including your residence visa.