Exemplo n.º 1
0
        public void TestGetDeptEnergyAvgViewModelByYear()
        {
            DateTime today = DateTime.Now;
            DepartmentEnergyAverageService   service   = new DepartmentEnergyAverageService();
            DepartmentEnergyAverageViewModel ViewModel = service.GetViewModel("000001G003", "01000", "YY", "2018");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
Exemplo n.º 2
0
 public object Get(string buildId, string energyCode, string type, string date)
 {
     try
     {
         return(service.GetViewModel(buildId, energyCode, type, date));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }