public static Engine CreateSavedEngine(string engineNo) { Engine engine = new Engine(); engine.EngineNo = engineNo; engine.Save(); return engine; }
public static Engine CreateSavedEngine(Car car, string engineNo) { Engine engine = new Engine(); engine.CarID = car.CarID; engine.EngineNo = engineNo; engine.Save(); return engine; }