Ejemplo n.º 1
0
 public Telefonlar UpdatePhone(int id, Telefonlar phone)
 {
     db.Entry(phone).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(phone);
 }
Ejemplo n.º 2
0
 public Telefonlar CreatePhone(Telefonlar phone)
 {
     db.Telefonlar.Add(phone);
     db.SaveChanges();
     return(phone);
 }