public int GetWaterbodyID(double latitude, double longitude) { var foundWaterbody = Waterbodies.Where(w => w.Latitude == latitude && w.Longitude == longitude) .FirstOrDefault(); if (foundWaterbody == null) { return(0); } return(foundWaterbody.WaterbodyID); }
public int GetWaterbodyID(string lakeName, string county, string state) { var foundWaterbody = Waterbodies.Where(w => w.LakeName == lakeName && w.County == county && w.State == state) .FirstOrDefault(); if (foundWaterbody == null) { return(0); } return(foundWaterbody.WaterbodyID); }