private void btnStopTimer_Click(object sender, RoutedEventArgs e) { // ttbTimer.IsStarted = false; _race.FinishDateTime = DateTime.Now; _rfidManager.Stop(); _timer.Stop(); _raceRepository.Edit(_race, _race.Id); _raceRepository.Save(); btnStopTimer.IsEnabled = false; }
public void Update(Race race) { raceRepository.Edit(race); }