예제 #1
0
 public async Task <ExistResult> ExistStaffAsync(string SessionKey, int StaffId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingProcessor.ExistStaffAsync(StaffId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
예제 #2
0
 public async Task <bool> ExistStaff([FromBody] int staffId, CancellationToken token)
 => await billingProcessor.ExistStaffAsync(staffId, token);