public void TestGetDeptEnergyAvgViewModelByYear() { DateTime today = DateTime.Now; DepartmentEnergyAverageService service = new DepartmentEnergyAverageService(); DepartmentEnergyAverageViewModel ViewModel = service.GetViewModel("000001G003", "01000", "YY", "2018"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
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); } }