Exemplo n.º 1
0
        private string FillEmailTemplate(UnreadMessageAlertModel u)
        {
            var template       = loadEmailTemplate();
            var filledTemplate = template.Replace("{{AlertMessage}}", $"You have {u.UnreadMessageCount} unread messages.")
                                 .Replace("{{LoginUrl}}", _urlProvider.GetLoginUrl());

            return(filledTemplate);
        }