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