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

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Update(CustomerCreditCard customerCreditCard)
        {
            var result = await _customerCreditCardService.Update(customerCreditCard);

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