/// <summary> /// Clears the person alert. /// </summary> /// <param name="clearAlertMessage">Instance of ClearAlertMessage</param> /// <param name="alertMessageStatusType">The alert and message status type.</param> /// <param name="personEvent">The person event.</param> /// <returns> /// Task Instance. /// </returns> public async Task ClearPersonAlertAndMessageAsync(ClearAlertMessage clearAlertMessage, AlertMessageStatusType alertMessageStatusType, PersonEvent personEvent) { await this.personServiceRepository.ClearPersonAlertAndMessageAsync(clearAlertMessage, alertMessageStatusType); }
/// <summary> /// Clears the person alert. /// </summary> /// <param name="clearAlertMessage">Instance of ClearAlertMessage</param> /// <param name="alertMessageStatusType">The alert and message status type.</param> /// <returns> /// Task Instance. /// </returns> public async Task ClearPersonAlertAndMessageAsync(ClearAlertMessage clearAlertMessage, AlertMessageStatusType alertMessageStatusType) { await this.personsClient.ClearPersonAlert(JsonConvert.SerializeObject(clearAlertMessage), null, null, null, isOnlineMode: true); }
/// <summary> /// Clears the person alert. /// </summary> /// <param name="clearAlertMessage">Instance of ClearAlertMessage</param> /// <param name="alertMessageStatusType">The alert and message status type.</param> /// <returns> /// Task Instance. /// </returns> public async Task ClearPersonAlertAndMessageAsync(ClearAlertMessage clearAlertMessage, AlertMessageStatusType alertMessageStatusType) { var command = this.Database.GetStoredProcCommand(UpdatePersonNotificationStoredProcedure) .AddParameter(PersonNotificationDetail, DbType.String, clearAlertMessage.RetrieveXml()); await this.ExecuteNonQueryAsync(command); }