Esempio n. 1
0
 public async Task <CountResult> DeleteDiscountAsync(string SessionKey, long BillingId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingDiscountProcessor.DeleteAsync(BillingId, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Esempio n. 2
0
 public async Task <int> DeleteDiscount([FromBody] long billingId, CancellationToken token)
 => await billingDiscountProcessor.DeleteAsync(billingId, token);