public void AddSite(ProjectionSite site) { //look for a site first var s = sites.FirstOrDefault(f => f.versionId == site.versionId); if (s == null) { sites.Add(site); } }
public void MinorVersionUpdate(ProjectionSite site) { //look for a site first var s = sites.FirstOrDefault(f => f.id == site.id); if (s != null) { sites.Remove(s); sites.Add(site); } }