Example #1
0
        public void TestGetRegionReportViewModelByBuild_EnergyCode()
        {
            DateTime today = DateTime.Now;
            RegionReportViewModel reportViewModel = service.GetViewModel("000001G001", "2018", "YY");

            Console.WriteLine(UtilTest.GetJson(reportViewModel));
        }
Example #2
0
 public object Get(string buildId, string date, string type)
 {
     try
     {
         return(service.GetViewModel(buildId, date, type));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }