Exemple #1
0
 public async Task <CustomerDiscountResult> SaveDiscountAsync(string SessionKey, CustomerDiscount CustomerDiscount)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await customerDiscountProcessor.SaveAsync(CustomerDiscount, token);
         return new CustomerDiscountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             CustomerDiscount = result,
         };
     }, logger));
 }
Exemple #2
0
 public async Task <ActionResult <CustomerDiscount> > SaveDiscount(CustomerDiscount customerDiscount, CancellationToken token)
 => await customerDiscountProcessor.SaveAsync(customerDiscount, token);