Fixed bug

This commit is contained in:
2023-12-14 00:00:14 +01:00
parent af454c22aa
commit 778cdaf7ef

View File

@@ -157,7 +157,7 @@ namespace WD7UVN_HFT_2023241.Client
public static IQueryable<Employee> WhoWorksInMaintainerTeam(int id) public static IQueryable<Employee> WhoWorksInMaintainerTeam(int id)
{ {
IQueryable<Employee> item = default(IQueryable<Employee>); var item = default(IQueryable<Employee>);
HttpResponseMessage response = client.GetAsync("/api/WhoWorksInMaintainerTeam?id=" + id.ToString()).GetAwaiter().GetResult(); HttpResponseMessage response = client.GetAsync("/api/WhoWorksInMaintainerTeam?id=" + id.ToString()).GetAwaiter().GetResult();
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{ {
@@ -173,7 +173,7 @@ namespace WD7UVN_HFT_2023241.Client
public static IQueryable<Employee> GetSubordinates(int id) public static IQueryable<Employee> GetSubordinates(int id)
{ {
IQueryable<Employee> item = default(IQueryable<Employee>); var item = default(IQueryable<Employee>);
HttpResponseMessage response = client.GetAsync("/api/GetSubordinates?id=" + id.ToString()).GetAwaiter().GetResult(); HttpResponseMessage response = client.GetAsync("/api/GetSubordinates?id=" + id.ToString()).GetAwaiter().GetResult();
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{ {
@@ -189,7 +189,7 @@ namespace WD7UVN_HFT_2023241.Client
public static IQueryable<Customer> WhoUsesService(int id) public static IQueryable<Customer> WhoUsesService(int id)
{ {
IQueryable<Customer> item = default(IQueryable<Customer>); var item = default(IQueryable<Customer>);
HttpResponseMessage response = client.GetAsync("/api/WhoUsesService?id=" + id.ToString()).GetAwaiter().GetResult(); HttpResponseMessage response = client.GetAsync("/api/WhoUsesService?id=" + id.ToString()).GetAwaiter().GetResult();
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{ {
@@ -221,7 +221,7 @@ namespace WD7UVN_HFT_2023241.Client
public static IQueryable<Employee> WhoMaintainsService(int id) public static IQueryable<Employee> WhoMaintainsService(int id)
{ {
IQueryable<Employee> item = default(IQueryable<Employee>); var item = default(IQueryable<Employee>);
HttpResponseMessage response = client.GetAsync("/api/WhoMaintainsService?id=" + id.ToString()).GetAwaiter().GetResult(); HttpResponseMessage response = client.GetAsync("/api/WhoMaintainsService?id=" + id.ToString()).GetAwaiter().GetResult();
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{ {