public void SaveState(TimeTableMemento timeTable) { var weeks = new List <Week> { timeTable.FirstWeek, timeTable.SecondWeek }; _dbHelper.Save(weeks); }
private void ExcelExportButton_Click(object sender, RoutedEventArgs e) { var weeks = new List <Week> { FirstWeek, SecondWeek }; _dbHelper.Save(weeks); }