Пример #1
0
        private void InitInventory()
        {
            Transaction t = WorkflowControl.Start();

            WorkflowControl.AddCars(t, "Vegas", 1, 3);
            WorkflowControl.AddRooms(t, "Vegas", 2, 1);
            WorkflowControl.AddCars(t, "NewYork", 10, 30);
            WorkflowControl.AddRooms(t, "NewYork", 20, 10);
            WorkflowControl.AddSeats(t, "SEA->LAX", 10, 2);
            WorkflowControl.AddSeats(t, "LAX->LAV", 12, 3);
            WorkflowControl.AddSeats(t, "SEA->JFK", 8, 4);
            WorkflowControl.Commit(t);
        }