Exemplo n.º 1
0
        public IActionResult Delete(SavedCreditCart creditCart)
        {
            var result = _savedCreditCartService.Delete(creditCart);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
 public IResult Delete(SavedCreditCart creditCart)
 {
     _savedCreditCartDal.Delete(creditCart);
     return(new SuccessResult(Messages.CartDeleted));
 }
 public IResult Add(SavedCreditCart creditCart)
 {
     _savedCreditCartDal.Add(creditCart);
     return(new SuccessResult(Messages.CartSaved));
 }