csharp PaginFilter.cs的部分内容

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp PaginFilter.cs的部分内容相关的知识,希望对你有一定的参考价值。

//Get our returned entityModel from the response
IEnumerable model = null;
context.Response.TryGetContentValue(out model);
if (model == null) return;

//Change response if limit or offset is not zero
IEnumerable result = null;
if ((limit + offset) > 0)
{
    result = model.Take(limit).Skip(offset);
}

以上是关于csharp PaginFilter.cs的部分内容的主要内容,如果未能解决你的问题,请参考以下文章