Пример #1
0
        public void TestGetEnergyItemStatisticViewModelByBuilID_Date()
        {
            DateTime today = DateTime.Now;
            EnergyItemStatisticService   service   = new EnergyItemStatisticService();
            EnergyItemStatisticViewModel ViewModel = service.GetViewModel("000001G001", today.ToString());

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
Пример #2
0
 public object Get(string buildId, string date)
 {
     try
     {
         return(service.GetViewModel(buildId, date));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }