public async Task DeleteParkrun(int id) { var parkrun = _dbContext.Parkruns.Where(p => p.Id == id).First(); if (parkrun != null) { _dbContext.Remove(parkrun); await _dbContext.SaveChangesAsync(); } }
public async Task DeleteParkrun(int id) { var parkrun = _dbContext.Parkruns.Where(p => p.Id == id).First(); if (parkrun != null) { _dbContext.Remove(parkrun); await _dbContext.SaveChangesAsync(); } }