public IActionResult Add(CustomerCreditCard customerCreditCard) { var result = _customerCreditCardService.Add(customerCreditCard); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IActionResult> Add(CustomerCreditCard customerCreditCard) { var result = await _customerCreditCardService.Add(customerCreditCard); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }