Ejemplo n.º 1
0
        public IActionResult Delete(CreditCart creditCart)
        {
            var result = _creditCartService.Delete(creditCart);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
        public void Delete(int id)
        {
            var creditCart = _creditCartService.GetCreditCart(id);

            _creditCartService.Delete(creditCart);
        }