internal Profile GetOrCreateProfile(Profile userInfo) { Profile foundProfile = _repo.GetByEmail(userInfo.Email); if (foundProfile == null) { return(_repo.Create(userInfo)); } return(foundProfile); }
public Profile GetOrCreateProfile(Profile userInfo) { Profile profile = _profilesRepository.GetByEmail(userInfo.Email); if (profile == null || profile.Id == null) { return(_profilesRepository.Create(userInfo)); } return(profile); }