/// <summary> /// Merges the message template text with placeholders /// </summary> /// <param name="messageTemplateText">The message template text.</param> /// <param name="placeholderValuesToMerge">The place holder values to merge.</param> /// <returns></returns> public static string MergeNotificationMessageText(string messageTemplateText, Dictionary <string, string> placeholderValuesToMerge) { string mergedMessage = string.Empty; if (!ValidatorUtility.IsNull(messageTemplateText)) { mergedMessage = messageTemplateText; if (placeholderValuesToMerge == null) { placeholderValuesToMerge = new Dictionary <string, string>(); } mergedMessage = mergedMessage.Inject(placeholderValuesToMerge, EmailConstants.templatePlaceholderStart, EmailConstants.templatePlaceholderEnd); } return(mergedMessage); }
public static bool IsNullOrEmpty(string value) { // forward return(ValidatorUtility.IsNull(value)); }