예제 #1
0
        public List <string> GetModels(string brand)
        {
            var list = GPSCollection
                       .Where(t => t.Brand == brand).ToList();

            return((from gps in list select gps.Model).Distinct().ToList());
        }
예제 #2
0
 public bool Exists(GPS gps)
 {
     return(GPSCollection.Where(t => t.DeviceID == gps.DeviceID).FirstOrDefault() != null);
 }