public void Save(Race entity) { var existing = _races.FirstOrDefault(t => t.Id == entity.Id); if (existing != null) { _races.Remove(existing); } _races.Add(entity); }
public void Save(Race entity) { throw new NotImplementedException(); }
public void Delete(Race entity) { var existing = _races.FirstOrDefault(t => t.Id == entity.Id); if (existing != null) _races.Remove(existing); }