Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1.     if (user.Role.Code == "user") {
  2.                         var registrationNotificationModel = new RegistrationNotificationEmailModel {
  3.                             Password = data.Password,
  4.                             User = Mapper.Map<RegistrationNotificationUserEmailModel>(user),
  5.                             Domain = (((affiliate ?? company)?.Domain ?? string.Empty) + "." + Properties.Settings.Default.MainDomain).Trim('.')
  6.                         };
  7.                         BackgroundJob.Enqueue<IEmailService>(es => es.Send(registrationNotificationModel));
  8.                     } else {
  9.                         var registrationNotificationModel = new AffiliatesSignUpNotificationEmailModel {
  10.                             Password = data.Password,
  11.                             User = Mapper.Map<RegistrationNotificationUserEmailModel>(user),
  12.                             Company = company.Map<CompanyEmailModel>(Mapper),
  13.                             Domain = (((affiliate ?? company)?.Domain ?? string.Empty) + "." + Properties.Settings.Default.MainDomain).Trim('.')
  14.                         };
  15.                         BackgroundJob.Enqueue<IEmailService>(es => es.Send(registrationNotificationModel));
  16.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement