示例#1
0
 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
 public async Task <bool> ExistDepartment([FromBody] int departmentId, CancellationToken token)
 => await billingProcessor.ExistDepartmentAsync(departmentId, token);