Changed collections to repositories in controllers.