Allors.Domain.ExchangeRate.BaseOnDerive C# (CSharp) Method

BaseOnDerive() public method

public BaseOnDerive ( Allors.Domain.ObjectOnDerive method ) : void
method Allors.Domain.ObjectOnDerive
return void
        public void BaseOnDerive(ObjectOnDerive method)
        {
            var derivation = method.Derivation;

            if (this.ExistFromCurrency && this.ExistToCurrency && this.FromCurrency.Equals(this.ToCurrency))
            {
                derivation.Validation.AddError(this, this.Meta.FromCurrency, "Currencies can not be same");
            }
        }
    }
ExchangeRate