Ejemplo n.º 1
0
        public EmailService(ILog log)
        {
            this.log = log;
             ISystemConfigurationService service = IoC.Resolve<ISystemConfigurationService>();
             systemConfiguration = service.Get();

             this.host = systemConfiguration.SmtpHost;
             smtpClient = new SmtpClient(host);
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            SystemConfiguration systemConfiguration = systemConfigurationService.Get();

             if (systemConfiguration == null)
            systemConfiguration = new SystemConfiguration();

             return View("Index", systemConfiguration);
        }