From 0fb21adc53eb4113fc46a38111844b7ebfccfaf9 Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Tue, 9 Jan 2024 18:37:09 +0100 Subject: [PATCH] Adding notification upon updating object --- WD7UVN_HFT_2023241.Client/CRUD.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/WD7UVN_HFT_2023241.Client/CRUD.cs b/WD7UVN_HFT_2023241.Client/CRUD.cs index 45b0e25..e4a22b5 100644 --- a/WD7UVN_HFT_2023241.Client/CRUD.cs +++ b/WD7UVN_HFT_2023241.Client/CRUD.cs @@ -536,6 +536,10 @@ namespace WD7UVN_HFT_2023241.Client }; RestService.Post(c, "/api/Customer/"); + + Console.WriteLine("\nSuccessfully updated Customer with ID {0}", id); + Console.WriteLine("Press any key to continue."); + Console.ReadKey(); } catch (FormatException) { @@ -593,6 +597,10 @@ namespace WD7UVN_HFT_2023241.Client }; RestService.Post(c, "/api/Employee/"); + + Console.WriteLine("\nSuccessfully updated Employee with ID {0}", id); + Console.WriteLine("Press any key to continue."); + Console.ReadKey(); } catch (FormatException) { @@ -666,6 +674,10 @@ namespace WD7UVN_HFT_2023241.Client }; RestService.Post(c, "/api/Service/"); + + Console.WriteLine("\nSuccessfully updated Service with ID {0}", id); + Console.WriteLine("Press any key to continue."); + Console.ReadKey(); } catch (FormatException) { @@ -714,6 +726,10 @@ namespace WD7UVN_HFT_2023241.Client }; RestService.Post(c, "/api/MaintainerTeam/"); + + Console.WriteLine("\nSuccessfully updated Team with ID {0}", id); + Console.WriteLine("Press any key to continue."); + Console.ReadKey(); } catch (FormatException) {