コード例 #1
0
        public IActionResult Add(CreditCard creditCard)
        {
            var result = _creditCardService.AddCard(creditCard);

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