Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }