Beispiel #1
0
        public List <CategoryItems> QueryAllAppSetting()
        {
            IAppSettingService   appSetService = IocMvcFactoryHelper.GetInterface <IAppSettingService>();
            List <CategoryItems> items         = appSetService.QueryAll();

            return(items);
        }
Beispiel #2
0
        public static Dictionary <string, string> QueryAllAppSetting(IAppSettingService service)
        {
            Dictionary <string, string> app = new Dictionary <string, string>();

            foreach (var item in service.QueryAll())
            {
                app.Add(item.Code, item.ItemValue);
            }
            return(app);
        }