Exemplo n.º 1
0
        public IActionResult Delete(NCreditCard creditCard)
        {
            var result = _creditCardService.Delete(creditCard);

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

            return(BadRequest(result));
        }
Exemplo n.º 2
0
 public IResult Delete(NCreditCard creditCard)
 {
     _creditCardDal.Delete(creditCard);
     return(new SuccessResult("Messages.creditCardDeleted"));
 }
Exemplo n.º 3
0
 public IResult Add(NCreditCard creditCard)
 {
     _creditCardDal.Add(creditCard);
     return(new SuccessResult("Messages.creditCardAdded"));
 }