public void TestGetMeterStateByUser()
        {
            MeterConnectStateService   service   = new MeterConnectStateService();
            MeterConnectStateViewModel ViewModel = service.GetViewModelByUserName("admin");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
 /// <summary>
 /// 默认获取 建筑ID,分类能耗,所有仪表状态
 /// </summary>
 /// <param name="userName"></param>
 /// <returns>建筑ID,分类能耗,第一栋建筑的所有仪表状态</returns>
 public object Get()
 {
     try
     {
         string userName = User.Identity.Name;
         return(service.GetViewModelByUserName(userName));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }