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)); }
public void Add(Coin coin) { _coinDal.Add(coin); }