Ejemplo n.º 1
0
 public async Task <BillingDiscountsResult> GetDiscountAsync(string SessionKey, long BillingId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await billingDiscountProcessor.GetAsync(BillingId, token)).ToList();
         return new BillingDiscountsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             BillingDiscounts = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <IEnumerable <BillingDiscount> > GetDiscount([FromBody] long billingId, CancellationToken token)
 => (await billingDiscountProcessor.GetAsync(billingId, token)).ToArray();