using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EMIS.ViewModel { public class StartEndTimeView { public DateTime? StartTime { get; set; } public DateTime? EndTime { get; set; } public bool IsOverlap(DateTime startTime, DateTime endTime) { if (StartTime <= endTime && EndTime >= startTime) { return true; } else { return false; } } } }