public async Task <CountResult> DeleteDiscountAsync(string SessionKey, long BillingId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await billingDiscountProcessor.DeleteAsync(BillingId, token); return new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }; }, logger)); }
public async Task <int> DeleteDiscount([FromBody] long billingId, CancellationToken token) => await billingDiscountProcessor.DeleteAsync(billingId, token);