Is i true that if you have need to go to washroom to urinate and you offer your prayers its invalid. But If someone has flatuence (gas) issue when praying and while praying he is controlling it and not releasing so is his/her namaz in order? Is wudhu also baatil?

If it was controlled then namaz and wudhu are in order but if from beginning if some one feels and started prayer and prayed then still namaz is correct and in order but this act is makrooh.
If someone passes gas or urinate then yes wudhu is also batil.