public void SaveToDatabase(SocialLogin socialLogin) { this.itanDatabaseContext.SocialLogins.Add(socialLogin); this.itanDatabaseContext.SaveChanges(); }
public void CreateNewSociaLogin(string identifierValue, AuthenticationTypeProvider authenticationTypeProvider, long newUserId) { var socialLogin = new SocialLogin(identifierValue, authenticationTypeProvider, newUserId); this.itanDatabaseContext.SocialLogins.Add(socialLogin); this.itanDatabaseContext.SaveChanges(); }