public IActionResult Post(CrediCard crediCard) { var result = _crediCardService.Add(crediCard); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IResult Add(CrediCard card) { _crediCardDal.Add(card); return(new SuccessResult(Messages.SuccessAdded)); }