Added the code to use the IOC for WebApi