diff --git a/RenovationWork/RenovationWorkClientApp/APIClient.cs b/RenovationWork/RenovationWorkClientApp/APIClient.cs index 43817f4..3d40622 100644 --- a/RenovationWork/RenovationWorkClientApp/APIClient.cs +++ b/RenovationWork/RenovationWorkClientApp/APIClient.cs @@ -13,8 +13,7 @@ namespace RenovationWorkClientApp { _client.BaseAddress = new Uri(configuration["IPAddress"]); _client.DefaultRequestHeaders.Accept.Clear(); - _client.DefaultRequestHeaders.Accept.Add(new - MediaTypeWithQualityHeaderValue("application/json")); + _client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); } public static T? GetRequest(string requestUrl) { diff --git a/RenovationWork/RenovationWorkClientApp/Controllers/HomeController.cs b/RenovationWork/RenovationWorkClientApp/Controllers/HomeController.cs index 17a8294..183df05 100644 --- a/RenovationWork/RenovationWorkClientApp/Controllers/HomeController.cs +++ b/RenovationWork/RenovationWorkClientApp/Controllers/HomeController.cs @@ -125,8 +125,7 @@ namespace RenovationWorkClientApp.Controllers { throw new Exception("Количество и сумма должны быть\r\nбольше 0"); } - APIClient.PostRequest("api/main/createorder", new - OrderBindingModel + APIClient.PostRequest("api/main/createorder", new OrderBindingModel { ClientId = APIClient.Client.Id, RepairId = repair, @@ -148,8 +147,7 @@ namespace RenovationWorkClientApp.Controllers { return Redirect("~/Home/Enter"); } - return - View(APIClient.GetRequest>($"api/client/getmessages?clientId={APIClient.Client.Id}")); + return View(APIClient.GetRequest>($"api/client/getmessages?clientId={APIClient.Client.Id}")); } } } \ No newline at end of file diff --git a/RenovationWork/RenovationWorkRestApi/Controllers/ClientController.cs b/RenovationWork/RenovationWorkRestApi/Controllers/ClientController.cs index e91369d..e42a30b 100644 --- a/RenovationWork/RenovationWorkRestApi/Controllers/ClientController.cs +++ b/RenovationWork/RenovationWorkRestApi/Controllers/ClientController.cs @@ -55,10 +55,7 @@ namespace RenovationWorkRestApi.Controllers { try { - return _mailLogic.ReadList(new MessageInfoSearchModel - { - ClientId = clientId - }); + return _mailLogic.ReadList(new MessageInfoSearchModel{ ClientId = clientId }); } catch (Exception ex) {