예제 #1
0
        public IActionResult SubscriveNewsletter(string email)
        {
            string message;
            var    result = _mailHelper.SendNewsletterConfirmation(email);

            if (!result)
            {
                message = "Something went wrong!";
            }
            else
            {
                message = "Thank you for subscriving.";
            }

            return(Json(message));
        }