From 3e2a958639b17b1f65bf9cb43f3a0dd4a734a8c4 Mon Sep 17 00:00:00 2001 From: Konstantin Dyachenko Date: Sat, 27 Jul 2019 22:18:09 +0300 Subject: [PATCH] Typos fix. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6137b1a..bb51986 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ using Retailcrm.Versions.V5; Client api = new Client("https://demo.retailcrm.ru", "T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH"); Response response = api.OrdersGet("12345", "externalId"); -if (response.isSuccessful()) { - Debug.WriteLine(Response.GetRawResponse()); +if (response.IsSuccessful()) { + Debug.WriteLine(response.GetRawResponse()); } else { Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]"); } @@ -63,8 +63,8 @@ Response response = api.OrdersCreate(new Dictionary }} }); -if (response.isSuccessful()) { - Debug.WriteLine(Response.GetResponse()["externalId"].ToString()); +if (response.IsSuccessful()) { + Debug.WriteLine(response.GetResponse()["externalId"].ToString()); } else { Debug.WriteLine($"Ошибка: [Статус HTTP-ответа {response.GetStatusCode().ToString()}]"); }