1234567891011121314151617181920212223242526 |
- 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;
- }
- }
- }
- }
|