Document_Manager #129
@ -187,7 +187,7 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
var totalCount = await documentQuery.CountAsync();
|
var totalCount = await documentQuery.CountAsync();
|
||||||
var totalPages = totalCount / pageSize;
|
var totalPages = (int)Math.Ceiling((double)totalCount / pageSize); ;
|
||||||
|
|
||||||
// Apply pagination & ordering
|
// Apply pagination & ordering
|
||||||
var documents = await documentQuery
|
var documents = await documentQuery
|
||||||
@ -424,7 +424,7 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
.Where(av => av.ParentAttachmentId == parentAttachmentId && av.TenantId == tenantId);
|
.Where(av => av.ParentAttachmentId == parentAttachmentId && av.TenantId == tenantId);
|
||||||
|
|
||||||
var totalCount = await versionMappingsQuery.CountAsync();
|
var totalCount = await versionMappingsQuery.CountAsync();
|
||||||
var totalPages = totalCount / pageSize;
|
var totalPages = (int)Math.Ceiling((double)totalCount / pageSize); ;
|
||||||
|
|
||||||
var versionMappings = await versionMappingsQuery
|
var versionMappings = await versionMappingsQuery
|
||||||
.OrderByDescending(da => da.ChildAttachment!.UploadedAt)
|
.OrderByDescending(da => da.ChildAttachment!.UploadedAt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user