Exemplo n.º 1
0
 public ServiceResult GetImageSetting()
 {
     return(JsonObjectResult((from i in BaseConfig.CreateInstances(SystemConfigEnum.Logo, SystemConfigEnum.AppCode)
                              select new SystemConfigItem
     {
         Title = i.Name,
         Name = i.Type.ToString(),
         Value = i.Value
     }), "获取图片设置失败"));
 }
Exemplo n.º 2
0
 private SystemConfigItem[] CreateSettingGroupItems(params SystemConfigEnum[] type)
 {
     return((from i in BaseConfig.CreateInstances(type)
             select new SystemConfigItem()
     {
         Title = i.Name,
         Name = i.Type.ToString(),
         Value = i.Value
     }).ToArray());
 }