예제 #1
0
        public void Delete(int competitionId)
        {
            var competition = new Competition() { Id = competitionId };

            _competitions.Attach(competition);

            _competitions.Remove(competition);
        }
예제 #2
0
 public void Add(Competition competition)
 {
     _competitions.Add(competition);
 }