public void Update(Character item)
        {
            var character = db.Characters.Find(item.Id);

            db.Entry(character).CurrentValues.SetValues(item);
            db.Entry(character).State = EntityState.Modified;
            db.SaveChanges();
        }
Example #2
0
        public void Update(Weekend item)
        {
            var weekend = db.Weekends.Find(item.Id);

            db.Entry(weekend).CurrentValues.SetValues(item);
            db.Entry(weekend).State = EntityState.Modified;
            db.SaveChanges();
        }
Example #3
0
        public void Update(Language item)
        {
            var language = db.Languages.Find(item.Id);

            db.Entry(language).CurrentValues.SetValues(item);
            db.Entry(language).State = EntityState.Modified;
            db.SaveChanges();
        }
Example #4
0
        public void Update(Employee item)
        {
            var employee = db.Employees.Find(item.Id);

            db.Entry(employee).CurrentValues.SetValues(item);
            db.Entry(employee).State = EntityState.Modified;
            db.SaveChanges();
        }