public Sighting AddSighting(Sighting sighting) { if (sighting.SightingID == 0) { int key = sightingItems.Count; while (sightingItems.ContainsKey(key)) { key++; } ; sighting.SightingID = key; } sightingItems[sighting.SightingID] = sighting; return(sighting); }
public Sighting UpdateSighting(Sighting sighting) => AddSighting(sighting);