public TrafficStop Get(int id) { DataContext context = new DataContext(); return context.TrafficStops.Where(ts => ts.Id == id).FirstOrDefault(); }
public List<TrafficStop> Sample() { DataContext context = new DataContext(); return context.TrafficStops.Where(ts => ts.Id < 100).ToList(); }
public List<TrafficStop> Get() { DataContext context = new DataContext(); return context.TrafficStops.ToList<TrafficStop>(); }