Beispiel #1
0
 public void UpdateFacebookLeadAdapter(FacebookLeadAdapter fla)
 {
     if (fla != null)
     {
         var db    = ObjectContextFactory.Create();
         var flaDb = Mapper.Map <FacebookLeadAdapter, FacebookLeadAdapterDb>(fla);
         db.Entry(flaDb).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Beispiel #2
0
 public void InsertFacebookLeadAdapter(FacebookLeadAdapter fla)
 {
     if (fla != null)
     {
         var db    = ObjectContextFactory.Create();
         var flaDb = Mapper.Map <FacebookLeadAdapter, FacebookLeadAdapterDb>(fla);
         db.FacebookLeadAdapters.Add(flaDb);
         db.SaveChanges();
     }
 }