Example #1
0
        public void UpdateEis(Eis eis)
        {
            var old = GetById(eis.Id);

            DeleteEis(old);
            AddEis(eis);
        }
Example #2
0
        public void DeleteEis(Eis eis)
        {
            var old = GetById(eis.Id);

            if (old != null)
            {
                db.Remove(old);
            }
        }
Example #3
0
 public void AddEis(Eis eis)
 {
     db.Add(eis);
 }