update InstitutionContractRepository to apply pagination with PageIndex and PageSize parameters in GetList method
This commit is contained in:
@@ -135,6 +135,11 @@ public class InstitutionContractListSearchModel
|
||||
/// ایندکس صفحه
|
||||
/// </summary>
|
||||
public int PageIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تعداد داخل صفحه
|
||||
/// </summary>
|
||||
public int PageSize { get; set; } = 30;
|
||||
}
|
||||
|
||||
public enum InstitutionContractStatus
|
||||
|
||||
@@ -1081,9 +1081,9 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
|
||||
}
|
||||
|
||||
//Todo: Search by Status For Tab
|
||||
var list = await joinedQuery.Skip(searchModel.PageIndex).Take(30).ToListAsync();
|
||||
|
||||
#endregion
|
||||
var list = await joinedQuery.ApplyPagination(searchModel.PageIndex,searchModel.PageSize).ToListAsync();
|
||||
|
||||
var res = new GetInstitutionContractListViewModel()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user