public void TestGetBuildInfo() { BuildSetService service = new BuildSetService(); BuildSetViewModel ViewModel = service.GetViewModel("000001G001"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
/// <summary> /// 获取建筑详细信息 /// </summary> /// <param name="buildID"></param> /// <returns></returns> public object Get(string buildID) { try { return(service.GetViewModel(buildID)); } catch (Exception e) { return(e.Message); } }