Credihealth interview question

How to make a controller method available on view