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