Adding feedback upon creating new object

This commit is contained in:
TypoMustakes
2024-01-09 18:32:56 +01:00
parent 4850f146e6
commit 116cfea4e0

View File

@@ -350,6 +350,10 @@ namespace WD7UVN_HFT_2023241.Client
}; };
RestService.Put<Customer>(c, "/api/Customer/"); RestService.Put<Customer>(c, "/api/Customer/");
Console.WriteLine("\nSuccessfully created Customer with ID {0}", id);
Console.WriteLine("Press any key to continue.");
Console.ReadKey();
} }
catch (FormatException) catch (FormatException)
{ {
@@ -390,6 +394,10 @@ namespace WD7UVN_HFT_2023241.Client
}; };
RestService.Put<Employee>(c, "/api/Employee/"); RestService.Put<Employee>(c, "/api/Employee/");
Console.WriteLine("\nSuccessfully created Customer with ID {0}", id);
Console.WriteLine("Press any key to continue.");
Console.ReadKey();
} }
catch (FormatException) catch (FormatException)
{ {
@@ -442,6 +450,10 @@ namespace WD7UVN_HFT_2023241.Client
}; };
RestService.Put<Service>(c, "/api/Service/"); RestService.Put<Service>(c, "/api/Service/");
Console.WriteLine("\nSuccessfully created Customer with ID {0}", id);
Console.WriteLine("Press any key to continue.");
Console.ReadKey();
} }
catch (FormatException) catch (FormatException)
{ {
@@ -474,6 +486,10 @@ namespace WD7UVN_HFT_2023241.Client
}; };
RestService.Put<MaintainerTeam>(c, "/api/MaintainerTeam/"); RestService.Put<MaintainerTeam>(c, "/api/MaintainerTeam/");
Console.WriteLine("\nSuccessfully created Customer with ID {0}", id);
Console.WriteLine("Press any key to continue.");
Console.ReadKey();
} }
catch (FormatException) catch (FormatException)
{ {