Пример #1
0
 public CelebrityHologram Update(CelebrityHologram celebHologram)
 {
     using (var c = new CelebrityHologramContext())
     {
         c.CelebrityHologram.Update(celebHologram);
         var id = c.SaveChanges();
         return(celebHologram);
     }
 }
Пример #2
0
 public int Save(CelebrityHologram celebHologram)
 {
     using (var c = new CelebrityHologramContext())
     {
         c.CelebrityHologram.Add(celebHologram);
         c.SaveChanges();
         return(celebHologram.CelebrityHologramId);
     }
 }