Answer the question
In order to leave comments, you need to log in
How to compare dates in Value Object?
good afternoon. please tell me how to compare dates in Value Object, it is necessary to check that the start date is less than or equal to the end date. there is a range
public class DateTimeRange : ValueObject
{
public DateTime Start {get; private set}
public DateTime End {get; private set}
public DateTimeRange(DateTime start, DateTime end)
{
Start = start;
end = end;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question