越来越顺了~~

This commit is contained in:
yubaolee
2017-11-30 17:47:41 +08:00
parent c026f263f8
commit 38cb16d9e7
25 changed files with 48 additions and 93 deletions

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenAuth.App.ViewModel;
using OpenAuth.App.Response;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;
@@ -102,9 +102,9 @@ namespace OpenAuth.App
return _unitWork.Find<WFSchemeInfo>(null).ToList();
}
public GridData Load(int pageCurrent, int pageSize)
public TableData Load(int pageCurrent, int pageSize)
{
var result = new GridData();
var result = new TableData();
result.count = _unitWork.Find<WFSchemeInfo>(null).Count();
result.data = _unitWork.Find<WFSchemeInfo>(pageCurrent, pageSize, "ModifyDate descending", null).ToList();