Esempio n. 1
0
 public async Task <CountResult> DeletePaymentContractAsync(string SessionKey, int CustomerId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await customerPaymentContractProcessor.DeleteAsync(CustomerId, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
 public async Task <int> Delete([FromBody] int customerId, CancellationToken token)
 => await customerPaymentContractProcessor.DeleteAsync(customerId, token);