public RazorEmailResult ReviewAssigned(ReviewAssignedEmailViewModel viewModel) { var toAddress = GetToAddress(viewModel.To); To.Add(toAddress); Subject = viewModel.Subject; From = DefaultFromAddress; return Email("ReviewAssignedEmail", viewModel); }
public static void SendReviewAssignedEmail(ReviewAssignedEmailViewModel viewModel, IEmailSender emailSender) { var email = new MailerController().ReviewAssigned(viewModel); emailSender.Send(email); }