|
ModelControllerTGetPagedList(ModelControllerTPostData, Int32, String) Method
|
Gets a subset of records from associated table, filtered and sorted as defined in postData.
based on Take and 0-based page index
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.158-beta
Syntax [RouteAttribute("{parentID?}/PagedList/{page}")]
[HttpPostAttribute]
public virtual IHttpActionResult GetPagedList(
[FromBodyAttribute] ModelControllerTPostData postData,
int page,
string parentID = null
)
<RouteAttribute("{parentID?}/PagedList/{page}")>
<HttpPostAttribute>
Public Overridable Function GetPagedList (
<FromBodyAttribute> postData As ModelControllerTPostData,
page As Integer,
Optional parentID As String = Nothing
) As IHttpActionResult
public:
[RouteAttribute(L"{parentID?}/PagedList/{page}")]
[HttpPostAttribute]
virtual IHttpActionResult^ GetPagedList(
[FromBodyAttribute] ModelControllerTPostData^ postData,
int page,
String^ parentID = nullptr
)
[<RouteAttribute("{parentID?}/PagedList/{page}")>]
[<HttpPostAttribute>]
abstract GetPagedList :
[<FromBodyAttribute>] postData : ModelControllerTPostData *
page : int *
?parentID : string
(* Defaults:
let _parentID = defaultArg parentID null
*)
-> IHttpActionResult
[<RouteAttribute("{parentID?}/PagedList/{page}")>]
[<HttpPostAttribute>]
override GetPagedList :
[<FromBodyAttribute>] postData : ModelControllerTPostData *
page : int *
?parentID : string
(* Defaults:
let _parentID = defaultArg parentID null
*)
-> IHttpActionResult
function GetPagedList(postData, page, parentID);
View SourceParameters
- postData ModelControllerTPostData
- ModelControllerTPostData containing the search and sort parameters
- page Int32
- The 0-based index of the page to be retrieved
- parentID String (Optional)
- Parent ID to be used if Table has a set Parent Key
Return Value
IHttpActionResultIHttpActionResult containing
IEnumerableT or
ExceptionSee Also