Ejemplo n.º 1
0
        public string Get()
        {
            string smtpServer           = string.Empty;
            AppSettingViewModel setting = settingsService.GetSettingByName("SMTP");

            if (setting == null)
            {
                throw new AutoMapperConfigurationException("No SMTP setting has been configured");
            }
            else
            {
                smtpServer = setting.AppSettingValue;
            }

            return(smtpServer);
        }