Beispiel #1
0
        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));
        }
Beispiel #2
0
 public async Task <bool> ExistCurrency([FromBody] int CurrencyId, CancellationToken token)
 => await receiptProcessor.ExistCurrencyAsync(CurrencyId, token);