internal void SaveFacebookLink(FacebookProfileInfo facebookProfileInfo, string siteName, Guid id) { FacebookProfilesContextFactory contextFactory = new FacebookProfilesContextFactory(); AnonoMightEntities context = contextFactory.GetContext(siteName); context.FacebookProfiles.Add(new FacebookProfile { Id = id, Name = facebookProfileInfo.Name, ProfileImage = facebookProfileInfo.FacebookImage, Link = facebookProfileInfo.Link, TimeStamp = DateTime.Now, Reports = 0 }); context.SaveChanges(); }
internal void SaveFacebookLink(PostFacebookLinkCommand command, Guid id) { FacebookProfilesContextFactory contextFactory = new FacebookProfilesContextFactory(); AnonoMightEntities context = contextFactory.GetContext(command.SiteName); context.FacebookProfiles.Add(new FacebookProfile { Id = id, Link = command.Url, TimeStamp = DateTime.Now, Reports = 0 }); context.SaveChanges(); }