public void Add(DeviceDashBoard device) { if (Devices.FirstOrDefault(o => o.Id == device.Id) == null) { Devices.Add(device); } }
public void Remove(DeviceDashBoard device) { Devices = Devices.Where(o => o.Id != device.Id).ToList(); }