Esempio 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);
        }
        public ActionResult Index()
        {
            SystemConfiguration systemConfiguration = systemConfigurationService.Get();

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

             return View("Index", systemConfiguration);
        }