Exemplo n.º 1
0
 public async Task <ExistResult> ExistDestinationAsync(string SessionKey, int DestinationId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingProcessor.ExistDestinationAsync(DestinationId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <bool> ExistDestination([FromBody] int destinationId, CancellationToken token)
 => await billingProcessor.ExistDestinationAsync(destinationId, token);