public List <CategoryItems> QueryAllAppSetting() { IAppSettingService appSetService = IocMvcFactoryHelper.GetInterface <IAppSettingService>(); List <CategoryItems> items = appSetService.QueryAll(); return(items); }
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); }