public void GetAll() { Thermostats.Clear(); SelectedThermostat = null; foreach (var item in context.GetAll()) { Thermostats.Add(item); } }