Пример #1
0
        public void UpdateStadium(StadiumBL element)
        {
            Stadium toUpdate = DB.Stadiums.Read(element.Id);

            if (toUpdate != null)
            {
                toUpdate = Mapper.Map <Stadium>(element);
                DB.Stadiums.Update(toUpdate);
                DB.Save();
            }
        }
Пример #2
0
 public void AddStadium(StadiumBL element)
 {
     DB.Stadiums.Create(Mapper.Map <Stadium>(element));
     DB.Save();
 }