public IActionResult GetAllByCustomerId(int customerId) { var result = _creditCardService.GetAllByCustomerId(customerId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IActionResult> GetAllByCustomerId(string customerId) { var result = await _creditCardService.GetAllByCustomerId(customerId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }