chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using 報到系統客戶端.Models;
|
||||
|
||||
namespace 報到系統客戶端.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 員工資料服務客戶端
|
||||
/// 呼叫後端 Services/BPSNService.asmx
|
||||
/// </summary>
|
||||
public class BPSNService
|
||||
{
|
||||
private const string SERVICE_PATH = "/Services/BPSNService.asmx";
|
||||
|
||||
/// <summary>
|
||||
/// 下載員工資料
|
||||
/// </summary>
|
||||
/// <returns>下載結果,包含員工資料清單</returns>
|
||||
public static BaseResponse Download()
|
||||
{
|
||||
return ApiService.Instance.Post(SERVICE_PATH, "Download", null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下載員工資料(非同步版本)
|
||||
/// </summary>
|
||||
//public static async Task<BaseResponse> DownloadAsync()
|
||||
//{
|
||||
// return await ApiService.Instance.PostAsync(SERVICE_PATH, "Download", null);
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user