From 1ffa025e6aa3525a82aaeb341524f17019c0395c Mon Sep 17 00:00:00 2001 From: Vaughub Date: Sun, 22 Nov 2020 10:18:48 +0100 Subject: [PATCH] command input change --- PostTripletex/Command.cs | 2 +- PostTripletex/Post.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PostTripletex/Command.cs b/PostTripletex/Command.cs index e41d38d..b001aec 100644 --- a/PostTripletex/Command.cs +++ b/PostTripletex/Command.cs @@ -18,7 +18,7 @@ public static void Welcome() Console.WriteLine(" co(contact) - Post"); Console.WriteLine(" e(employee) - Post"); Console.WriteLine("\nExample: del 5 p (deletes 5 products)"); - Console.Write("> "); + Console.Write("\n> "); } public static void Invalid() diff --git a/PostTripletex/Post.cs b/PostTripletex/Post.cs index e1fd0db..3061e8e 100644 --- a/PostTripletex/Post.cs +++ b/PostTripletex/Post.cs @@ -49,7 +49,7 @@ public static async Task Contact(Employee employee, int number) if (HttpStatusCode.Created != response.StatusCode) throw new ArgumentException($"Contact post error: {response.StatusCode}"); - Console.Write($"\r{i + 1} Contact made"); + Console.Write($"\r{i + 1} Contact created"); } Console.WriteLine("\n"); @@ -93,7 +93,7 @@ public static async Task Product(Employee employee, int number) FileDoc.WriteFile(response.Data.Value, "Product.csv"); - Console.Write($"\r{i + 1} Product made"); + Console.Write($"\r{i + 1} Product created"); } Console.WriteLine("\n"); @@ -132,7 +132,7 @@ public static async Task Employee(int number) if (HttpStatusCode.Created != response.StatusCode) throw new ArgumentException($"Employee post error: {response.StatusCode}"); - Console.Write($"\r{i + 1} Employee made"); + Console.Write($"\r{i + 1} Employee created"); } Console.WriteLine("\n"); @@ -162,7 +162,7 @@ public static async Task Customer(int number) FileDoc.WriteFile(response.Data.Value, "Customer.csv"); - Console.Write($"\r{i + 1} Customer made"); + Console.Write($"\r{i + 1} Customer created"); } Console.WriteLine("\n");