Declare ControllerBase variables as protected instead of public.