Document_Manager #129

Merged
ashutosh.nehete merged 83 commits from Document_Manager into main 2025-09-11 04:12:01 +00:00
Showing only changes of commit 01f214a60b - Show all commits

View File

@ -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
};