Exemplo n.º 1
0
 public static void DeleteCellphone(CellphoneEntity oCellphone)
 {
     using (var bd = new CellphoneContext())
     {
         bd.Cellphones.Remove(oCellphone);
         bd.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public static void CreateCellphone(CellphoneEntity oCellphone)
 {
     using (var bd = new CellphoneContext())
     {
         bd.Cellphones.Add(oCellphone);
         bd.SaveChanges();
     }
 }