Beispiel #1
0
        public IActionResult Add(CreditCart creditCart)
        {
            var result = _creditCartService.Add(creditCart);

            return(Ok(result));

            return(BadRequest(result));
        }
        public IActionResult RegisterCreditCard(CreditCart creditCart)
        {
            var result = _cardService.Add(creditCart);

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

            return(BadRequest(result));
        }
 public CreditCarts Post([FromBody] CreditCarts creditCart)
 {
     _creditCartService.Add(creditCart);
     return(creditCart);
 }