Files
BeWoPlaner/Shared/DataContracts/ClientPartials/AbsenceTimeDC.cs
2016-06-27 01:45:38 +02:00

34 lines
804 B
C#

using System;
using BS.Shared.Core;
namespace BS.Shared.DataContracts
{
public partial class AbsenceTimeDC
{
public DateTimeSpan AbsenceSpan
{
get
{
if (this.Start.HasValue)
{
DateTimeSpan span = new DateTimeSpan();
span.StartDateTime = this.Start.Value;
if (this.End.HasValue)
{
span.EndDateTime = this.End.Value;
}
else
{
span.EndDateTime = DateTime.MaxValue;
}
return span;
}
return null;
}
}
}
}