Adding noncrud method

This commit is contained in:
2024-04-29 23:27:35 +02:00
parent f99350a329
commit e40638e3a4

View File

@@ -8,6 +8,7 @@ using System.Net;
using System.Net.Http; using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using WD7UVN_HFT_2023241.Models;
namespace WD7UVN_SzTGUI_2023242.Client.WPF namespace WD7UVN_SzTGUI_2023242.Client.WPF
{ {
@@ -418,6 +419,11 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF
} }
public async Task<List<Employee>> GetSubordinates(Employee e)
{
List<Employee> res = new List<Employee>();
res = await this.rest.GetAsync<Employee>("api/GetSubordinates");
return res;
}
} }
} }