private bool CheckSingleDay(AlarmProfileSingleDayExportModel singleDay)
        {
            bool dayOK = singleDay.Identity >= 1;
            if (dayOK) dayOK = singleDay.ProfileForeignKey >= 1;
            if (dayOK) dayOK = singleDay.DayNumber >= 0 && singleDay.DayNumber <= 6;
            if (dayOK) dayOK = CheckDaySendingOprion(singleDay.AlwaysSend, singleDay.NeverSend, singleDay.SendBetween);
            if (dayOK) dayOK = singleDay.LowerHour >= 0 && singleDay.LowerHour <= 24;
            if (dayOK) dayOK = singleDay.UpperHour >= 0 && singleDay.UpperHour <= 24;

            return dayOK;
        }
        private void ObtainAlarmDaysDefinitions()
        {
            //create reader instance
            AlarmProfileReader reader = new AlarmProfileReader(_realmProvider);

            //for every full profile definition
            foreach (var item in _profilesDefinitionsList)
            {
                //get days definitions
                List <AlarmProfilerDayDefinition> days = reader.GetListOfProfileDays(item.AlarmProfileDefinition.Identity);

                //translate raalm days into export models
                List <AlarmProfileSingleDayExportModel> daysExportModels = new List <AlarmProfileSingleDayExportModel>();
                foreach (var item2 in days)
                {
                    AlarmProfileSingleDayExportModel exportModel = new AlarmProfileSingleDayExportModel()
                    {
                        Identity          = item2.Identity,
                        AlwaysSend        = item2.AlwaysSend,
                        NeverSend         = item2.NeverSend,
                        SendBetween       = item2.SendBetween,
                        ProfileForeignKey = item2.ProfileForeignKey,
                        DayNumber         = item2.DayNumber,
                        LowerHour         = item2.LowerHour,
                        UpperHour         = item2.UpperHour
                    };

                    daysExportModels.Add(exportModel);
                }



                //assign obtained days
                item.DaysList = daysExportModels;
            }
        }