示例#1
0
 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);
 }
示例#2
0
 public Sighting UpdateSighting(Sighting sighting)
 => AddSighting(sighting);