Exemple #1
0
 public static Config GetConfig()
 {
     Config result = null;
     try
     {
         ConfigRepository configRepository = new ConfigRepository();
         result = configRepository.FindOne(c => c.Id == 1);
     }
     catch (Exception e)
     {
         LogService.Log("查询配置信息失败", e.ToString());
     }
     return result;
 }