9 lines
223 B
C#
9 lines
223 B
C#
namespace CsharpOopSimplified2.Domain;
|
|
|
|
public sealed record Money(decimal Amount)
|
|
{
|
|
public Money Add(Money other) => new(Amount + other.Amount);
|
|
|
|
public Money Subtract(Money other) => new(Amount - other.Amount);
|
|
}
|