Пример #1
0
        private static List <Message> GetAllSuccess()
        {
            IConfigurationRoot root = AppSettingConfig.GetAppSettingConfig();
            var    errors           = root.GetSection("SystemMessages");
            string filePath         = errors["JsonSuccessPath"].ToLower();
            string json             = File.ReadAllText(filePath);

            return(JsonConvert.DeserializeObject <List <Message> >(json));
        }