コード例 #1
0
ファイル: BillingService.svc.cs プロジェクト: fwka1605/next
 public async Task <ExistResult> ExistDepartmentAsync(string SessionKey, int DepartmentId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingProcessor.ExistDepartmentAsync(DepartmentId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
コード例 #2
0
ファイル: BillingController.cs プロジェクト: fwka1605/next
 public async Task <bool> ExistDepartment([FromBody] int departmentId, CancellationToken token)
 => await billingProcessor.ExistDepartmentAsync(departmentId, token);