From 38a2c76a9d63ab83cfa5dd3d796ab7c4a0f46be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Wed, 13 Dec 2023 23:56:44 +0100 Subject: [PATCH] Undid last commit, it was a mistake --- WD7UVN_HFT_2023241.Client/RestService.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WD7UVN_HFT_2023241.Client/RestService.cs b/WD7UVN_HFT_2023241.Client/RestService.cs index a0eae77..3221166 100644 --- a/WD7UVN_HFT_2023241.Client/RestService.cs +++ b/WD7UVN_HFT_2023241.Client/RestService.cs @@ -158,7 +158,7 @@ namespace WD7UVN_HFT_2023241.Client public static IQueryable WhoWorksInMaintainerTeam(int id) { IQueryable item = default(IQueryable); - HttpResponseMessage response = client.GetAsync("/api/WhoWorksInMaintainerTeam" + id.ToString()).GetAwaiter().GetResult(); + HttpResponseMessage response = client.GetAsync("/api/WhoWorksInMaintainerTeam/" + id.ToString()).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { item = response.Content.ReadAsAsync>().GetAwaiter().GetResult(); @@ -174,7 +174,7 @@ namespace WD7UVN_HFT_2023241.Client public static IQueryable GetSubordinates(int id) { IQueryable item = default(IQueryable); - HttpResponseMessage response = client.GetAsync("/api/GetSubordinates" + id.ToString()).GetAwaiter().GetResult(); + HttpResponseMessage response = client.GetAsync("/api/GetSubordinates/" + id.ToString()).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { item = response.Content.ReadAsAsync>().GetAwaiter().GetResult(); @@ -190,7 +190,7 @@ namespace WD7UVN_HFT_2023241.Client public static IQueryable WhoUsesService(int id) { IQueryable item = default(IQueryable); - HttpResponseMessage response = client.GetAsync("/api/WhoUsesService" + id.ToString()).GetAwaiter().GetResult(); + HttpResponseMessage response = client.GetAsync("/api/WhoUsesService/" + id.ToString()).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { item = response.Content.ReadAsAsync>().GetAwaiter().GetResult(); @@ -206,7 +206,7 @@ namespace WD7UVN_HFT_2023241.Client public static Employee WhoIsResponsibleForService(int id) { Employee item = default(Employee); - HttpResponseMessage response = client.GetAsync("/api/WhoIsResponsibleForService" + id.ToString()).GetAwaiter().GetResult(); + HttpResponseMessage response = client.GetAsync("/api/WhoIsResponsibleForService/" + id.ToString()).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { item = response.Content.ReadAsAsync().GetAwaiter().GetResult(); @@ -222,7 +222,7 @@ namespace WD7UVN_HFT_2023241.Client public static IQueryable WhoMaintainsService(int id) { IQueryable item = default(IQueryable); - HttpResponseMessage response = client.GetAsync("/api/WhoMaintainsService" + id.ToString()).GetAwaiter().GetResult(); + HttpResponseMessage response = client.GetAsync("/api/WhoMaintainsService/" + id.ToString()).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { item = response.Content.ReadAsAsync>().GetAwaiter().GetResult();