// or PATCH public void Put(int carId, TyreSide side, Tyre tyre) { }
public void Replace(Tyre tyre) { tyre.LastChangeDate = DateTime.Now; tyre.Status = TyreStatus.OK; }
public void Puncture(Tyre tyre) { tyre.Status = TyreStatus.Punctured; }
public void Repair(Tyre tyre) { tyre.Status = TyreStatus.OK; }
public void LowAir(Tyre tyre) { tyre.Status = TyreStatus.LowAir; }