diff --git a/ApiDto/Common/PairPeriodTime.cs b/ApiDto/Common/PairPeriodTime.cs new file mode 100644 index 0000000..89b0732 --- /dev/null +++ b/ApiDto/Common/PairPeriodTime.cs @@ -0,0 +1,22 @@ +using System; +using System.ComponentModel.DataAnnotations; + +namespace Mirea.Api.Dto.Common; + +/// +/// Represents a pair of time periods. +/// +public class PairPeriodTime +{ + /// + /// Gets or sets the start time of the period. + /// + [Required] + public TimeOnly Start { get; set; } + + /// + /// Gets or sets the end time of the period. + /// + [Required] + public TimeOnly End { get; set; } +} \ No newline at end of file