Ajax controller with dependency injection