Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit 4375835

Browse files
committed
Unindent code block
1 parent e41c59f commit 4375835

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,36 @@ modified to suit your own requirements.
88

99
## Example
1010

11-
```C#
12-
var client = new ApiClient("test", "username", "password");
13-
var inventory_client = new InventoryClient(client);
14-
Inventory inventory;
15-
16-
// Create inventory
17-
inventory = new Inventory();
18-
inventory.whse = "00";
19-
inventory.partNo = "TESTPART";
20-
inventory.type = InventoryType.Normal;
21-
inventory.status = InventoryStatus.Active;
22-
inventory.description = "Test Inventory";
23-
inventory = inventory_client.Create(inventory);
24-
25-
// List inventory matching the query "TEST"
26-
foreach (var i in inventory_client.List(0, 100, "TEST"))
27-
{
28-
// i.id
29-
}
30-
31-
// Get inventory
32-
inventory = inventory_client.Fetch(inventory.id);
33-
34-
// Update inventory
35-
inventory.description = "New Description";
36-
inventory_client.Update(inventory.id, inventory);
37-
38-
// Delete inventory
39-
inventory_client.Delete(inventory.id);
40-
```
11+
```C#
12+
var client = new ApiClient("test", "username", "password");
13+
var inventory_client = new InventoryClient(client);
14+
Inventory inventory;
15+
16+
// Create inventory
17+
inventory = new Inventory();
18+
inventory.whse = "00";
19+
inventory.partNo = "TESTPART";
20+
inventory.type = InventoryType.Normal;
21+
inventory.status = InventoryStatus.Active;
22+
inventory.description = "Test Inventory";
23+
inventory = inventory_client.Create(inventory);
24+
25+
// List inventory matching the query "TEST"
26+
foreach (var i in inventory_client.List(0, 100, "TEST"))
27+
{
28+
// i.id
29+
}
30+
31+
// Get inventory
32+
inventory = inventory_client.Fetch(inventory.id);
33+
34+
// Update inventory
35+
inventory.description = "New Description";
36+
inventory_client.Update(inventory.id, inventory);
37+
38+
// Delete inventory
39+
inventory_client.Delete(inventory.id);
40+
```
4141

4242

4343
## Documentation

0 commit comments

Comments
 (0)