示例#1
0
        public async Task <CountResult> DeleteAsync(string SessionKey, int Id)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await paymentAgencyProcessor.DeleteAsync(Id, token);

                return new CountResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Count = result,
                };
            }, logger));
        }
示例#2
0
 public async Task <ActionResult <int> > Delete(PaymentAgency agency, CancellationToken token)
 => await paymentAgencyProcessor.DeleteAsync(agency.Id, token);