the service can have one method for both that takes the type as a param.