Document_Manager #129
@ -231,11 +231,14 @@ namespace Marco.Pms.Services.Service
|
||||
return contactVM;
|
||||
}).ToList();
|
||||
|
||||
var totalPages = (int)Math.Ceiling((double)totalCount / pageSize);
|
||||
|
||||
// Step 7: Construct and return the final response.
|
||||
var response = new
|
||||
{
|
||||
TotalPages = (int)Math.Ceiling((double)totalCount / pageSize),
|
||||
TotalPages = totalPages,
|
||||
CurrentPage = pageNumber,
|
||||
TotalRecords = totalCount,
|
||||
PageSize = pageSize,
|
||||
Data = list
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user