public IActionResult Add(UserCreditCard card) { var userId = _customerService.GetById(card.UserId); card.UserId = userId.Data.UserId; var result = _userCreditCardService.Add(card); return(Ok(result)); }
public IActionResult Add(UserCreditCard creditCard) { var result = _userCreditCardService.Add(creditCard); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }