TableController<TData>.LookupAsync(String) Method

Definition

Provides a helper method for looking up an entity in a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

protected virtual System.Threading.Tasks.Task<System.Web.Http.SingleResult<TData>> LookupAsync (string id);
abstract member LookupAsync : string -> System.Threading.Tasks.Task<System.Web.Http.SingleResult<'Data>>
override this.LookupAsync : string -> System.Threading.Tasks.Task<System.Web.Http.SingleResult<'Data>>
Protected Overridable Function LookupAsync (id As String) As Task(Of SingleResult(Of TData))

Parameters

id
System.String

Returns

System.Threading.Tasks.Task<System.Web.Http.SingleResult<TData>>

An System.Web.Http.SingleResult`1 returned by the IDomainManager<TData>.

Applies to