Ejemplo n.º 1
0
        public ResultCommand Handle(DeleteCurrencyTypeCommand command)
        {
            var result = new ResultCommand();

            var currencyType = _repository.GetById(command.Id);

            currencyType.Delete();

            result.AddNotifications(currencyType);

            if (result.Valid)
            {
                _repository.Update(currencyType);
            }

            return(result);
        }