refactor: extract common pagination properties into PaginationRequest and apply it in InstitutionContractListSearchModel
This commit is contained in:
7
0_Framework/Application/PaginationRequest.cs
Normal file
7
0_Framework/Application/PaginationRequest.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace _0_Framework.Application;
|
||||
|
||||
public class PaginationRequest
|
||||
{
|
||||
public int PageIndex { get; set; } = 1;
|
||||
public int PageSize { get; set; } = 30;
|
||||
}
|
||||
@@ -112,7 +112,7 @@ public class CreateInstitutionContractRequest
|
||||
public string EmployeeManualCount { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
public class InstitutionContractListSearchModel
|
||||
public class InstitutionContractListSearchModel :PaginationRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// کارفرما / کارگاه / طرف حساب / معرف
|
||||
@@ -174,13 +174,4 @@ public class InstitutionContractListSearchModel
|
||||
/// </summary>
|
||||
public bool? IsOfficial { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ایندکس صفحه
|
||||
/// </summary>
|
||||
public int PageIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تعداد داخل صفحه
|
||||
/// </summary>
|
||||
public int PageSize { get; set; } = 30;
|
||||
}
|
||||
Reference in New Issue
Block a user