Exemple #1
0
        // Güncelleme
        public mobil_state update(int id, mobil_state s)
        {
            db.Entry(s).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();

            return(s);
        }
Exemple #2
0
        // 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);
        }