Adding feedback upon creating new object
This commit is contained in:
@@ -350,6 +350,10 @@ namespace WD7UVN_HFT_2023241.Client
|
||||
};
|
||||
|
||||
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)
|
||||
{
|
||||
@@ -390,6 +394,10 @@ namespace WD7UVN_HFT_2023241.Client
|
||||
};
|
||||
|
||||
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)
|
||||
{
|
||||
@@ -442,6 +450,10 @@ namespace WD7UVN_HFT_2023241.Client
|
||||
};
|
||||
|
||||
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)
|
||||
{
|
||||
@@ -474,6 +486,10 @@ namespace WD7UVN_HFT_2023241.Client
|
||||
};
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user