protected void OnComboMarkChanged(object sender, EventArgs e) { if (comboMark.SelectedItem == null) { comboModel.ItemsList = null; Entity.CarModel = null; return; } comboModel.ItemsList = CarModelRepository.GetCarModels(UoW, comboMark.SelectedItem as CarBrand); if (Entity.CarModel != null) { comboModel.SelectedItem = Entity.CarModel; } }