/// <summary> /// Check if a notification exists for a given UDPRN id and action string. /// </summary> /// <param name="uDPRN">UDPRN id</param> /// <param name="action">action string</param> /// <returns>boolean value</returns> public async Task<bool> CheckIfNotificationExists(int uDPRN, string action) { using (loggingHelper.RMTraceManager.StartTrace("Business.CheckIfNotificationExists")) { string methodName = MethodHelper.GetActualAsyncMethodName(); loggingHelper.Log(methodName + LoggerTraceConstants.COLON + LoggerTraceConstants.MethodExecutionStarted, TraceEventType.Verbose, null, LoggerTraceConstants.Category, LoggerTraceConstants.NotificationAPIPriority, LoggerTraceConstants.NotificationBusinessServiceMethodEntryEventId, LoggerTraceConstants.Title); var checkIfNotificationExists = await notificationDataService.CheckIfNotificationExists(uDPRN, action); loggingHelper.Log(methodName + LoggerTraceConstants.COLON + LoggerTraceConstants.MethodExecutionCompleted, TraceEventType.Verbose, null, LoggerTraceConstants.Category, LoggerTraceConstants.NotificationAPIPriority, LoggerTraceConstants.NotificationBusinessServiceMethodExitEventId, LoggerTraceConstants.Title); return checkIfNotificationExists; } }