Prettifying output
This commit is contained in:
@@ -10,6 +10,7 @@ namespace WD7UVN_HFT_2023241.Client
|
|||||||
{
|
{
|
||||||
RestService rest = new RestService();
|
RestService rest = new RestService();
|
||||||
|
|
||||||
|
Console.WriteLine("All employees:\n");
|
||||||
List<Employee> employeeList = rest.Get<Employee>("/api/Employee/");
|
List<Employee> employeeList = rest.Get<Employee>("/api/Employee/");
|
||||||
foreach (Employee e in employeeList)
|
foreach (Employee e in employeeList)
|
||||||
{
|
{
|
||||||
@@ -20,6 +21,7 @@ namespace WD7UVN_HFT_2023241.Client
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("\n\nAll customers:\n");
|
||||||
List<Customer> customerList = rest.Get<Customer>("/api/Customer/");
|
List<Customer> customerList = rest.Get<Customer>("/api/Customer/");
|
||||||
foreach (Customer c in customerList)
|
foreach (Customer c in customerList)
|
||||||
{
|
{
|
||||||
@@ -30,7 +32,8 @@ namespace WD7UVN_HFT_2023241.Client
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<MaintainerTeam> maintainerTeamList = rest.Get<MaintainerTeam>("/api/MaintainerTeam/");
|
Console.WriteLine("\n\nMaintainer teams:\n");
|
||||||
|
List<MaintainerTeam> maintainerTeamList = rest.Get<MaintainerTeam>("/api/MaintainerTeam/");
|
||||||
foreach (MaintainerTeam m in maintainerTeamList)
|
foreach (MaintainerTeam m in maintainerTeamList)
|
||||||
{
|
{
|
||||||
Console.WriteLine(
|
Console.WriteLine(
|
||||||
@@ -40,7 +43,8 @@ namespace WD7UVN_HFT_2023241.Client
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Service> serviceList = rest.Get<Service>("/api/Service/");
|
Console.WriteLine("\n\nMaintained services:\n");
|
||||||
|
List<Service> serviceList = rest.Get<Service>("/api/Service/");
|
||||||
foreach (Service s in serviceList)
|
foreach (Service s in serviceList)
|
||||||
{
|
{
|
||||||
Console.WriteLine(
|
Console.WriteLine(
|
||||||
|
|||||||
Reference in New Issue
Block a user