コード例 #1
0
        public async Task <ExistResult> ExistCustomerAsync(string SessionKey, int CustomerId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await customerGroupProcessor.ExistCustomerAsync(CustomerId, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
コード例 #2
0
 public async Task <ActionResult <bool> > ExistCustomer([FromBody] int customerId, CancellationToken token)
 => await customerGroupProcessor.ExistCustomerAsync(customerId, token);