public async Task <ExistResult> ExistPaymentAgencyAsync(string SessionKey, int PaymentAgencyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await categoryProcessor.ExistPaymentAgencyAsync(PaymentAgencyId, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <ActionResult <bool> > ExistPaymentAgency([FromBody] int paymentAgencyId, CancellationToken token) => await categoryProcessor.ExistPaymentAgencyAsync(paymentAgencyId, token);