Exemplo n.º 1
0
        private int CheckIfAlarmProfileExists(AlarmS7UImodel alarmModel)
        {
            //create instance of alarm profile reader
            AlarmProfileReader reader = new AlarmProfileReader(_realmPRovider);

            //check if alarm profile with this name exists
            return(reader.GetIdOfAlarmProfileOfName(alarmModel.AlarmProfileName));
        }
        private bool CheckIfProfileWithThisNameExistts(AlarmProfileDefinitionExportModel item)
        {
            //create instance of alarm profile reader
            AlarmProfileReader reader = new AlarmProfileReader(_realmProvider);
            int identity = reader.GetIdOfAlarmProfileOfName(item.ProfileName);

            return(identity > 0);
        }