public void TestList() { var response = log.Add(new Request <SysLog>() { Obj = new SysLog() { CreateDate = DateTime.Now, Action = "TestList", Location = "Test/SysLogService", Message = "测试 SysLogService List 方法 !", Type = "查询", UserId = 1, UserName = "******" } }); var times = response.Times; Assert.AreEqual(response.Data.UserId, 1); var res = log.List(); times = res.Times; Assert.AreEqual(res.Data.Count, 2); }
// // GET: /SysLog/ public ActionResult Index() { var request = new Qz.Core.Entity.Request <SysLog>(); var response = sysLogService.List(request); var responseNew = sysLogService.ListNew(request); return(View(response)); }