private void DbUpdate(Plane plane, LandingRunwayStation station, FlightActionsEnum flightAction) { ILanding flight = simulatorService.CreateFlightByAction(plane, station, flightAction) as ILanding; dbSaveService.AddLanding(flight); }
private void AddTakeoffToDb(Plane plane, TakeoffRunwayStation runway) { ITakeoff flight = simulatorService.CreateFlightByAction(plane, runway, FlightActionsEnum.Takeoff) as ITakeoff; dbSaveService.AddTakeoof(flight); }