Adding noncrud method
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user