public async Task <ExistResult> ExistCurrencyAsync(string SessionKey, int CurrencyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await receiptProcessor.ExistCurrencyAsync(CurrencyId, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <bool> ExistCurrency([FromBody] int CurrencyId, CancellationToken token) => await receiptProcessor.ExistCurrencyAsync(CurrencyId, token);