GenericService(TModel, TEntity).Delete Method

Template MVC

GenericServiceTModel, TEntityDelete Method

Add an entity based on the passed model and delete it on database

Namespace:  Template.Service.Core
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual void Delete(
	TModel model
)

Parameters

model
Type: TModel
The model to convert in a entity

Implements

IServiceTModelDelete(TModel)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrows when model parameter is null
See Also