Files
BeWoPlaner/Shared/DataContracts/ClientPartials/AbsenceTimeDC.cs

36 lines
851 B
C#
Raw Normal View History

2016-06-27 01:45:38 +02:00
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;
}
}
public string InsUser { get; set; }
2016-06-27 01:45:38 +02:00
}
}