ПИбд-21. Басалов А.Д. Лабораторная 2 #2 #2

Closed
Tonby73 wants to merge 9 commits from LabWork_2 into LabWork_1
Showing only changes of commit 3fb820cd28 - Show all commits

View File

@ -52,8 +52,9 @@ namespace ProjectTourAgency.Forms
{
throw new Exception("Есть незаполненные поля");
}
_tourRepository.CreateTour(Tour.CreateEntity(0, comboBoxEmployeeId.SelectedIndex,
comboBoxRouteId.SelectedIndex, dateTimePicker.Value,CreateListClientTourFromDataGrid()));
_tourRepository.CreateTour(Tour.CreateEntity(0, (int)comboBoxEmployeeId.SelectedValue,
(int)comboBoxRouteId.SelectedValue, dateTimePicker.Value,CreateListClientTourFromDataGrid()));
Close();
}
catch (Exception ex)
{