Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <CustomerDiscount> > SaveDiscount(CustomerDiscount customerDiscount, CancellationToken token)
 => await customerDiscountProcessor.SaveAsync(customerDiscount, token);