Exemple #1
0
        public async Task <CustomerBlockResponse> CustomerBlockAsync([FromBody] CustomerBlockRequest request)
        {
            var result = await _customersService.BlockCustomerAsync(request.CustomerId);

            return(new CustomerBlockResponse
            {
                Error = _mapper.Map <CustomerBlockError>(result)
            });
        }