convert type 'void' to 'bool' in method getStudent