public static bool CheckDuplicateChildEnrollmentStatus(Guid ChildSchoolYearId, Guid EnrollmentStatusId, DateTime EnrollmentDate, Guid Id)
        {
            bool result = false;

            DayCarePL.Logger.Write(DayCarePL.LogType.INFO, DayCarePL.ModuleToLog.clChildEnrollmentStatus, "CheckDuplicateChildEnrollmentStatus", "Execute CheckDuplicateChildEnrollmentStatus Method", DayCarePL.Common.GUID_DEFAULT);
            clConnection.DoConnection();
            DayCareDataContext db = new DayCareDataContext();

            try
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.DEBUG, DayCarePL.ModuleToLog.clChildEnrollmentStatus, "CheckDuplicateChildEnrollmentStatus", "Debug CheckDuplicateChildEnrollmentStatus Method", DayCarePL.Common.GUID_DEFAULT);

                var data = db.spCheckDuplicateChildEnrollmentStatus(ChildSchoolYearId, EnrollmentStatusId, EnrollmentDate, Id);
                foreach (var c in data)
                {
                    result = true;
                    break;
                }
                return(result);
            }
            catch (Exception ex)
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.EXCEPTION, DayCarePL.ModuleToLog.clChildEnrollmentStatus, "CheckDuplicateChildEnrollmentStatus", ex.Message.ToString(), DayCarePL.Common.GUID_DEFAULT);
                return(false);
            }
        }