Generic repository and generic service.