Example #1
0
        public void Update(NguoiDung nguoiDung)
        {
            var entry = db.Entry(nguoiDung);   //provides information, ability to perform actions on the entity

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }
Example #2
0
        public void Update(KeHoach kehoach)
        {
            var entry = db.Entry(kehoach);   //provides information, ability to perform actions on the entity

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }
Example #3
0
        public void Update(ThucDon thucdon)
        {
            var entry = db.Entry(thucdon);   //provides information, ability to perform actions on the entity

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