/// <summary>
        /// This method updates a 'NotificationHistory'.
        /// This method uses the 'NotificationHistory_Update' procedure.
        /// </summary>
        /// <returns>True if successful false if not.</returns>
        /// </summary>
        public bool UpdateNotificationHistory(UpdateNotificationHistoryStoredProcedure updateNotificationHistoryProc, DataConnector databaseConnector)
        {
            // Initial Value
            bool saved = false;

            // Verify database connection is connected
            if ((databaseConnector != null) && (databaseConnector.Connected))
            {
                // Execute Update.
                saved = this.DataHelper.UpdateRecord(updateNotificationHistoryProc, databaseConnector);
            }

            // return value
            return(saved);
        }
        /// <summary>
        /// This method creates an instance of an
        /// 'UpdateNotificationHistoryStoredProcedure' object and
        /// creates the sql parameter[] array needed
        /// to execute the procedure 'NotificationHistory_Update'.
        /// </summary>
        /// <param name="notificationHistory"The 'NotificationHistory' object to update</param>
        /// <returns>An instance of a 'UpdateNotificationHistoryStoredProcedure</returns>
        public static UpdateNotificationHistoryStoredProcedure CreateUpdateNotificationHistoryStoredProcedure(NotificationHistory notificationHistory)
        {
            // Initial Value
            UpdateNotificationHistoryStoredProcedure updateNotificationHistoryStoredProcedure = null;

            // verify notificationHistory exists
            if (notificationHistory != null)
            {
                // Instanciate updateNotificationHistoryStoredProcedure
                updateNotificationHistoryStoredProcedure = new UpdateNotificationHistoryStoredProcedure();

                // Now create parameters for this procedure
                updateNotificationHistoryStoredProcedure.Parameters = CreateUpdateParameters(notificationHistory);
            }

            // return value
            return(updateNotificationHistoryStoredProcedure);
        }
        /// <summary>
        /// This method updates a 'NotificationHistory' object.
        /// </summary>
        /// <param name='List<PolymorphicObject>'>The 'NotificationHistory' to update.
        /// <returns>A PolymorphicObject object with a value.
        internal PolymorphicObject UpdateNotificationHistory(List <PolymorphicObject> parameters, DataConnector dataConnector)
        {
            // Initial Value
            PolymorphicObject returnObject = new PolymorphicObject();

            // locals
            NotificationHistory notificationHistory = null;

            // If the data connection is connected
            if ((dataConnector != null) && (dataConnector.Connected == true))
            {
                // Create Update StoredProcedure
                UpdateNotificationHistoryStoredProcedure updateNotificationHistoryProc = null;

                // verify the first parameters is a(n) 'NotificationHistory'.
                if (parameters[0].ObjectValue as NotificationHistory != null)
                {
                    // Create NotificationHistory Parameter
                    notificationHistory = (NotificationHistory)parameters[0].ObjectValue;

                    // verify notificationHistory exists
                    if (notificationHistory != null)
                    {
                        // Now create updateNotificationHistoryProc from NotificationHistoryWriter
                        // The DataWriter converts the 'NotificationHistory'
                        // to the SqlParameter[] array needed to update a 'NotificationHistory'.
                        updateNotificationHistoryProc = NotificationHistoryWriter.CreateUpdateNotificationHistoryStoredProcedure(notificationHistory);
                    }

                    // Verify updateNotificationHistoryProc exists
                    if (updateNotificationHistoryProc != null)
                    {
                        // Execute Update Stored Procedure
                        bool saved = this.DataManager.NotificationHistoryManager.UpdateNotificationHistory(updateNotificationHistoryProc, dataConnector);

                        // Create returnObject.Boolean
                        returnObject.Boolean = new NullableBoolean();

                        // If save was successful
                        if (saved)
                        {
                            // Set returnObject.Boolean.Value to true
                            returnObject.Boolean.Value = NullableBooleanEnum.True;
                        }
                        else
                        {
                            // Set returnObject.Boolean.Value to false
                            returnObject.Boolean.Value = NullableBooleanEnum.False;
                        }
                    }
                    else
                    {
                        // Raise Error Data Connection Not Available
                        throw new Exception("The database connection is not available.");
                    }
                }
            }

            // return value
            return(returnObject);
        }