Pagination in CSharp

var metadata = new
{
	owners.TotalCount,
	owners.PageSize,
	owners.CurrentPage,
	owners.TotalPages,
	owners.HasNext,
	owners.HasPrevious
};
 
Response.Headers.Add("X-Pagination", JsonConvert.SerializeObject(metadata));
 
_logger.LogInfo($"Returned {owners.TotalCount} owners from database.");

URL: Site Unreachable


📇 Additional Metadata