GenericService(TModel, TEntity).Add Method
From Template MVC
Template Documentation
GenericServiceTModel, TEntityAdd Method |
Add an entity based on the passed model and insert it on database
Namespace: Template.Service.Core
Assembly: Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public virtual void Add( TModel model )
Parameters
- model
- Type: TModel
The model to convert in a entity
Implements
IServiceTModelAdd(TModel)| Exception | Condition |
|---|---|
| ArgumentNullException | Throws when model parameter is null |