for testing : Modify method name of GetCodeByName to GetIdbyName