public static DayCarePL.ProgScheduleProperties CheckBeginTimeAndEndTime(Guid SchoolId, Int32 DayIndex, DateTime BeginTime, DateTime EndTime)
        {
            bool result = false;

            DayCarePL.Logger.Write(DayCarePL.LogType.INFO, DayCarePL.ModuleToLog.clProgSchedule, "CheckBeginTimeAndEndTime", "Execute CheckBeginTimeAndEndTime Method", DayCarePL.Common.GUID_DEFAULT);
            clConnection.DoConnection();
            DayCarePL.ProgScheduleProperties objProgSchedule = null;
            DayCareDataContext db = new DayCareDataContext();

            try
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.DEBUG, DayCarePL.ModuleToLog.clProgSchedule, "CheckBeginTimeAndEndTime", "Debug CheckBeginTimeAndEndTime Method", DayCarePL.Common.GUID_DEFAULT);
                var data = db.spGetCheckBeginTimeAndEndTimeInHoursOfOpration(DayIndex, SchoolId, BeginTime, EndTime);
                foreach (var c in data)
                {
                    result          = true;
                    objProgSchedule = new DayCarePL.ProgScheduleProperties();
                    break;
                }
                return(objProgSchedule);
            }
            catch (Exception ex)
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.EXCEPTION, DayCarePL.ModuleToLog.clProgSchedule, "CheckBeginTimeAndEndTime", ex.Message.ToString(), DayCarePL.Common.GUID_DEFAULT);
                return(null);
            }
        }