Files
Backend-Api/0_Framework/Domain/CustomizeCheckoutShared/ValueObjects/CustomizeRotatingShift.cs
2025-01-04 18:49:34 +03:30

24 lines
597 B
C#

using System;
using Microsoft.AspNetCore.Authentication;
namespace _0_Framework.Domain.CustomizeCheckoutShared.ValueObjects;
public record CustomizeRotatingShift
{
public CustomizeRotatingShift(TimeOnly startTime,TimeOnly endTime)
{
StartTime = startTime;
EndTime = endTime;
}
public TimeOnly StartTime { get; set; }
public TimeOnly EndTime { get; set; }
public virtual bool Equals(CustomizeRotatingShift other)
{
if (StartTime==other.StartTime && EndTime == other.EndTime)
{
return true;
}
return false;
}
}