using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using wispro.sp.entity; namespace wispro.sp.web.Services { public class OrganizationService { private readonly IHttpService _httpClient; public OrganizationService(IHttpService httpClient) { _httpClient = httpClient; } public async Task SaveDept(Department dept) { var data = await _httpClient.Post($"Organization/SaveDept",dept); return data; } public async Task> GetDepartments() { var data = await _httpClient.Get>($"Organization/GetDepartments"); return data; } public async Task DeleteDept(int deptId) { var ret = await _httpClient.Get($"Organization/DeleteDept?Id={deptId}"); return ret; } } }