|
ModelControllerT, UGet(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.207-beta
Syntax [RouteAttribute("{parentID}/{sort}/{ascending:int}")]
[HttpGetAttribute]
public virtual IHttpActionResult Get(
string parentID,
string sort,
int ascending
)
<RouteAttribute("{parentID}/{sort}/{ascending:int}")>
<HttpGetAttribute>
Public Overridable Function Get (
parentID As String,
sort As String,
ascending As Integer
) As IHttpActionResult
public:
[RouteAttribute(L"{parentID}/{sort}/{ascending:int}")]
[HttpGetAttribute]
virtual IHttpActionResult^ Get(
String^ parentID,
String^ sort,
int ascending
)
[<RouteAttribute("{parentID}/{sort}/{ascending:int}")>]
[<HttpGetAttribute>]
abstract Get :
parentID : string *
sort : string *
ascending : int -> IHttpActionResult
[<RouteAttribute("{parentID}/{sort}/{ascending:int}")>]
[<HttpGetAttribute>]
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