Ejemplo n.º 1
0
 public async Task <CountResult> SaveDiscountAsync(string SessionKey, Web.Models.BillingDiscount BillingDiscount)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingDiscountProcessor.SaveAsync(BillingDiscount, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <int> SaveDiscount(BillingDiscount discount, CancellationToken token)
 => await billingDiscountProcessor.SaveAsync(discount, token);