IService(TModel).Get Method

Template MVC

IServiceTModelGet Method

Get an unique model based on the expresion, retreives the entity and convert it to model

Namespace:  Template.Service.Core.Interface
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
TModel Get(
	Expression<Func<TModel, bool>> predicate
)

Parameters

predicate
Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
The expression to filter the selection

Return Value

Type: TModel
The model based on the predicate
See Also