コード例 #1
0
        /// <summary>
        /// Gets list object of the table NotificationsSettings.
        /// </summary>
        /// <param name="lFilterNotificationsSettings">List that contains the DTOs from NotificationsSettings table that filter the query.</param>
        /// <returns>List object of the table NotificationsSettings.</returns>
        /// <author>Mauricio Suárez.</author>
        public List <NotificationsSettingsDto> GetNotificationsSettings(NotificationsSettingsDto dtoNotificationsSettings)
        {
            List <NotificationsSettingsDto> listFilterNotificationsSettings = new List <NotificationsSettingsDto>();

            listFilterNotificationsSettings.Add(dtoNotificationsSettings);
            return(this.ExecuteGetNotificationsSettings(null, listFilterNotificationsSettings));
        }
コード例 #2
0
        /// <summary>
        /// Save or update records for the table
        /// </summary>
        /// <param name="listDataNotificationsSettings">List of data to store NotificationsSettings.</param>
        /// <returns>The result of processing the list.</returns>
        /// <author>Mauricio Suárez.</author>
        public bool SaveNotificationsSettings(NotificationsSettingsDto dtoNotificationsSettings)
        {
            List <NotificationsSettingsDto> listDataNotificationsSettings = new List <NotificationsSettingsDto>();

            listDataNotificationsSettings.Add(dtoNotificationsSettings);
            return(this.SaveNotificationsSettings(listDataNotificationsSettings));
        }