Example #1
0
        public ActionResult SendReminderEmails()
        {
            var data = SortMainObject.GetNeedReminder();

            if (data != null && data.Count > 0)
            {
                TempData["Emailed"] = $"Reminder Email will be sent to {data.Count} Artifact owners.";
                data.ForEach(n => Email.SendEmail(n, EmailTypeEnum.Reminder, true));
            }

            return(RedirectToAction("EditEmail"));
        }