public void AC_FunctionService_Select2_Test() { var result = _aC_FunctionService.Select(new SearchAC_FunctionModel { PagedIndex = 0, PagedSize = 15 }); Assert.IsTrue(result.Data != null); }
/// <summary> /// 查询系统功能 /// </summary> /// <param name="model">搜索实体对象</param> /// <returns></returns> /// <remarks>added by jimmy,2015-7-3</remarks> public JsonResult List(SearchAC_FunctionModel model) { model.PagedSize = model.PagedSize == 0 ? 10 : model.PagedSize; var paramList = _aC_FunctionService.Select(new SearchAC_FunctionModel { PagedIndex = model.PagedIndex, PagedSize = model.PagedSize, FunctionName = model.FunctionName, ParentID = model.ParentID }); var data = new { rows = paramList.Data, total = paramList.Data.TotalCount }; return(Json(data, JsonRequestBehavior.AllowGet)); }