Example #1
0
 public async Task <CountResult> DeleteDiscountAsync(string SessionKey, int CustomerId, int Sequence)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await customerDiscountProcessor.DeleteAsync(new CustomerDiscount {
             CustomerId = CustomerId, Sequence = Sequence,
         }, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Example #2
0
 public async Task <ActionResult <int> > DeleteDiscount(CustomerDiscount discount, CancellationToken token)
 => await customerDiscountProcessor.DeleteAsync(discount, token);