public void ListViewPageAcademicYear_Test() { AcademicYearViewModel testModel = null; BaseResultModel <PageModel <AcademicYearViewModel> > result = AcademicYearService.ListViewPageAcademicYear(testModel); Assert.IsTrue(result.IsSuccess && result.Data.DataCount > 0, result.ErrorMessage); testModel = new AcademicYearViewModel() { PageNO = 1, PageSize = 2, AcademicYearName = "测试AcademicYearName" }; result = AcademicYearService.ListViewPageAcademicYear(testModel); Assert.IsTrue(result.IsSuccess, result.ErrorMessage); }
/// <summary> /// 获取学年表视图列表分页 /// </summary> /// <param name="model">ViewModel</param> /// <returns>ViewModel</returns> public BaseResultModel <PageModel <AcademicYearViewModel> > ListViewPageAcademicYear(AcademicYearViewModel model) { return(AcademicYearService.ListViewPageAcademicYear(model)); }