public async Task EditRace(Race race) { var savedRace = await DaoProvider.RaceDao.FindById(race.Id).ConfigureAwait(false); await DaoProvider.RaceDao.Update(race).ConfigureAwait(false); if (race.Status != savedRace.Status) { RaceStatusChanged?.Invoke(race, race.Status); } }
protected virtual void FireRaceStatusChanged(CollectionChangeEventArgs e) { RaceStatusChanged?.Invoke(this, e); }