[BACKLOG-194] -- Refactored RepositoryResource to call service methods