Пример #1
0
        public async Task <ExistResult> ExistCustomerAsync(string SessionKey, int CustomerId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await receiptProcessor.ExistCustomerAsync(CustomerId, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
Пример #2
0
 public async Task <bool> ExistCustomer([FromBody] int CustomerId, CancellationToken token)
 => await receiptProcessor.ExistCustomerAsync(CustomerId, token);