public void AddReport(Report report) { var isDublicate = this.reports.Any( r => r.Manufacturer == report.Manufacturer && r.Model == report.Model); if (isDublicate) { throw new ArgumentException(Constants.Duplicate); } else { this.reports.Add(report); } }
public void RemoveReport(Report report) { this.reports.Remove(report); }