Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (user.Role.Code == "user") {
- var registrationNotificationModel = new RegistrationNotificationEmailModel {
- Password = data.Password,
- User = Mapper.Map<RegistrationNotificationUserEmailModel>(user),
- Domain = (((affiliate ?? company)?.Domain ?? string.Empty) + "." + Properties.Settings.Default.MainDomain).Trim('.')
- };
- BackgroundJob.Enqueue<IEmailService>(es => es.Send(registrationNotificationModel));
- } else {
- var registrationNotificationModel = new AffiliatesSignUpNotificationEmailModel {
- Password = data.Password,
- User = Mapper.Map<RegistrationNotificationUserEmailModel>(user),
- Company = company.Map<CompanyEmailModel>(Mapper),
- Domain = (((affiliate ?? company)?.Domain ?? string.Empty) + "." + Properties.Settings.Default.MainDomain).Trim('.')
- };
- BackgroundJob.Enqueue<IEmailService>(es => es.Send(registrationNotificationModel));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement