Exemple #1
0
 public TransactionController(RetreatDBContext context, IOptions <PaystackConfig> paystackConfig, IRetreatEmailSender emailSender, IEmailHelper emailHelper)
 {
     _context     = context;
     _config      = paystackConfig?.Value;
     _emailSender = emailSender;
     _emailHelper = emailHelper;
 }
Exemple #2
0
 public EmailHelper(IHostingEnvironment env, RetreatDBContext context, IRetreatEmailSender emailSender)
 {
     _context     = context;
     _emailSender = emailSender;
     _templateDir = Path.Combine(env.WebRootPath, $"templates\\email_templates\\");
 }