public void Update(Subject subject)
        {
            var entry = db.Entry(subject);

            entry.State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Exemple #2
0
        public void Update(Exam exam)
        {
            var entry = db.Entry(exam);

            entry.State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }