Add repository and dependency injection for Web API.