|
ModelControllerTGet(String, String, Int32) Method
|
Gets all records from associated table, filtered to parent key ID if provided, sorted by the provided Field.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.158-beta
Syntax [HttpGetAttribute]
[RouteAttribute("{parentID}/{sort}/{ascending:int}")]
public virtual IHttpActionResult Get(
string parentID,
string sort,
int ascending
)
<HttpGetAttribute>
<RouteAttribute("{parentID}/{sort}/{ascending:int}")>
Public Overridable Function Get (
parentID As String,
sort As String,
ascending As Integer
) As IHttpActionResult
public:
[HttpGetAttribute]
[RouteAttribute(L"{parentID}/{sort}/{ascending:int}")]
virtual IHttpActionResult^ Get(
String^ parentID,
String^ sort,
int ascending
)
[<HttpGetAttribute>]
[<RouteAttribute("{parentID}/{sort}/{ascending:int}")>]
abstract Get :
parentID : string *
sort : string *
ascending : int -> IHttpActionResult
[<HttpGetAttribute>]
[<RouteAttribute("{parentID}/{sort}/{ascending:int}")>]
override Get :
parentID : string *
sort : string *
ascending : int -> IHttpActionResult
function Get(parentID, sort, ascending);
View SourceParameters
- parentID String
- Parent ID to be used if Table has a set Parent Key
- sort String
- the Field to be sorted by.
- ascending Int32
- parameter to indicate whether the list is in ascending order.
Return Value
IHttpActionResultIHttpActionResult containing
IEnumerableT or
ExceptionSee Also