public void Delete(int competitionId) { var competition = new Competition() { Id = competitionId }; _competitions.Attach(competition); _competitions.Remove(competition); }
public void Add(Competition competition) { _competitions.Add(competition); }