// Güncelleme public mobil_state update(int id, mobil_state s) { db.Entry(s).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(s); }
// Ekleme işlemi (eklenen nesneyi Geri Döndür) public mobil_state create(mobil_state s) { db.mobil_state.Add(s); db.SaveChanges(); return(s); }