-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (35 loc) · 1.04 KB
/
Program.cs
File metadata and controls
38 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using SimpleInventoryManagementSystem;
var controller = Configuration.BuildUserController();
while (true)
{
Console.WriteLine("""
Please select an option:
1. Add product to inventory
2. Display all products
3. Find and display a product
4. Find and edit a product
5. Find and delete a product
else. Exit
""");
var input = Console.In.ReadLine();
switch (input)
{
case "1":
await controller.AddProductAsync();
break;
case "2":
await controller.DisplayProductsAsync();
break;
case "3":
await controller.FindAndDisplayProductAsync();
break;
case "4":
await controller.FindAndEditProductAsync();
break;
case "5":
await controller.FindAndDeleteProductAsync();
break;
default:
return 0;
}
}