Beispiel #1
0
        public IResult Add(Coin entity)
        {
            IResult result = BusinessRules.Run(CheckIfCoinNameExists(entity.CoinName));

            if (!(result is null))
            {
                return(result);
            }

            _coinDal.Add(entity);
            return(new SuccessResult(Messages.SuccessAdded));
        }
Beispiel #2
0
 public void Add(Coin coin)
 {
     _coinDal.Add(coin);
 }