public void Save() { if (repository.CheckIfUnique(this)){ repository.Save(this); } else{ throw new DuplicateUserException("Unique user not found"); } }