public static void SendTaskAssignedEmail(TaskAssignedEmailViewModel viewModel, IEmailSender emailSender, bool isActionTask = false)
 {
     var email = (isActionTask) ? 
         new MailerController().ActionTaskAssigned(viewModel) :
         new MailerController().TaskAssigned(viewModel);
     emailSender.Send(email);
 }
Пример #2
0
        public RazorEmailResult ActionTaskAssigned(TaskAssignedEmailViewModel viewModel)
        {
            var toAddress = GetToAddress(viewModel.To);
            To.Add(toAddress);
            Subject = viewModel.Subject;
            From = DefaultFromAddress;

            return Email("ActionTaskAssignedEmail", viewModel);
        }