Exemplo n.º 1
0
        public MailingService(ISettings settings, ApplicationDbContext context, IHostingEnvironment hostingEnvironment,
                              IWish wishManager)
        {
            _settings   = settings;
            _appContext = context;
            string webRoot = hostingEnvironment.WebRootPath;

            _wishManager = wishManager;

            _pathVideoContentHtml     = Path.Combine(webRoot, "mail", "videoContent.html");
            _pathMailContentHtml      = Path.Combine(webRoot, "mail", "mailContent.html");
            _pathSerieContentHtml     = Path.Combine(webRoot, "mail", "serieContent.html");
            _pathWishMovieContentHtml = Path.Combine(webRoot, "mail", "wishMovieContent.html");
        }
Exemplo n.º 2
0
 public HomeController()
 {
     _adapter = new WishAdapter();
 }
 public WishController()
 {
     _adapter = new WishAdapter();
 }