public IActionResult Delete(CustomerCreditCard customerCreditCard)
        {
            var result = _customerCreditCardService.Delete(customerCreditCard);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#2
0
        public async Task <IActionResult> Delete(CustomerCreditCard customerCreditCard)
        {
            var result = await _customerCreditCardService.Delete(customerCreditCard);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }