public void TestGetLogByWeek() { SystemLogService service = new SystemLogService(); SystemLogViewModel ViewModel = service.GetViewModel("WW"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
public void TestGetLogByDatetime() { SystemLogService service = new SystemLogService(); string startDay = DateTime.Now.ToString("yyyy-MM-dd"); string endDay = DateTime.Now.ToString("yyyy-MM-dd"); SystemLogViewModel ViewModel = service.GetViewModel(startDay, endDay); Console.WriteLine(UtilTest.GetJson(ViewModel)); }