Пример #1
0
        public void UpdateExposition(ExpositionDTO exposition)
        {
            var old = db.Exposition.Get(exposition.Id);

            if (old == null)
            {
                return;
            }
            db.Exposition.Update(mapper.Map(exposition, old));
            db.Save();
        }
Пример #2
0
 public void AddExposition(ExpositionDTO exposition)
 {
     db.Exposition.Create(mapper.Map <Exposition>(exposition));
     db.Save();
 }