30 lines
606 B
C#
30 lines
606 B
C#
using System.Collections.Generic;
|
|
|
|
namespace AyaNova.Api.ControllerHelpers
|
|
{
|
|
|
|
|
|
|
|
public class ApiOkWithPagingResponse<T>
|
|
{
|
|
|
|
public object Result { get; }
|
|
public object Paging { get; }
|
|
|
|
public ApiOkWithPagingResponse(ApiPagedResponse<T> pr)
|
|
{
|
|
Result = pr.items;
|
|
Paging = pr.PageLinks;
|
|
|
|
}
|
|
|
|
// public ApiOkWithPagingResponse(object result, AyaNova.Models.PaginationLinkBuilder lb)
|
|
// {
|
|
// Result = result;
|
|
// Paging = lb.PagingData();
|
|
|
|
// }
|
|
}//eoc
|
|
|
|
|
|
}//eons |