I just want to know whatWhat is the recommended or standard way of doing this?
If none of these methods are okay, kindly suggest a one with code?
Also please note that I have reduced no of line to make it more readable. Appreciate your any help towards the right direction.