Пример #1
0
 public bool Contains(int locationId)
 => OpenedLocationInfoes.Any(s => s.Id == locationId);
Пример #2
0
 public LocationInfo GetById(int locationId)
 => OpenedLocationInfoes.First(s => s.Id == locationId);
Пример #3
0
 public void Add(int locationId)
 => OpenedLocationInfoes.Add(new LocationInfo {
     Id = locationId
 });