Beispiel #1
0
 public void Update(Glass glass)
 {
     context.Entry(glass).State = EntityState.Modified;
     context.SaveChanges();
 }
Beispiel #2
0
 public void Create(Glass glass)
 {
     context.Glasses.Add(glass);
     context.SaveChanges();
 }