class ProjectTeamServiceImpl extends AbstractProjectServiceImpl implements ProjectTeamService {

    @Override
    @Transactional
    public ServiceResult<Void> inviteTeamMember(long projectId, ProjectUserInviteResource inviteResource) {
        return getProject(projectId)
                .andOnSuccess(project -> validateGOLGenerated(project, PROJECT_SETUP_PROJECT_MANAGER_CANNOT_BE_UPDATED_IF_GOL_GENERATED))
                .andOnSuccess(() -> saveProjectInvite(inviteResource))
                .andOnSuccess(() -> inviteContact(projectId, inviteResource, Notifications.INVITE_PROJECT_MEMBER));
    }

    public  ProjectTeamServiceImpl();

}