public Price(Rial rial) { if (rial < 1) { throw new ArgumentOutOfRangeException($"مقدار قیمت کمتر از 1 ریال نمیتواند باشد", nameof(Price)); } Value = rial; }
public static Price FromLong(long value) => new Price(Rial.FromLong(value));
public static Price FromString(string value) => new Price(Rial.FromString(value));