private void uxSaveRaceButton_Click(object sender, EventArgs e) { raceController.CreateRace(locationController.GetLocationIdFromName(uxLocationDropDown.SelectedItem.ToString()), DateTimeConverstion(uxDateTimePicker.Value.ToString(), uxTimeBox.Text), Convert.ToInt32(uxDistanceBox.Text)); Hide(); var races = new uxRaces(); races.Closed += (s, args) => Close(); races.Show(); }
public Race CreateRace(int year) { return(_raceRepository.CreateRace(year)); }