cant seem to use the ioc for apicontrollers