private void ButtonSaveClick(object sender, RoutedEventArgs e) { var model = new SavedServiceModel { Location = this.CB_Location?.SelectedItem?.ToString(), Salon = this.CB_Salon?.SelectedItem?.ToString(), Hairdresser = this.CB_Hairdresser?.SelectedItem?.ToString(), Service = this.CB_Service?.SelectedItem?.ToString() }; this.ViewModel.Add(model); }
public void Add(SavedServiceModel model) { this.Items.Add(model); }