Skip to content

Commit

Permalink
command input change
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaughub committed Nov 22, 2020
1 parent 90952d1 commit 1ffa025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PostTripletex/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions PostTripletex/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 1ffa025

Please sign in to comment.