IAzureCosmosDbDeleteTemplate Method

Deletes TemplateDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
Task DeleteTemplate(
	TemplateDto templateItem,
	UserSessionData deletedBy,
	CancellationToken cancellationToken = default
)

Parameters

templateItem  TemplateDto
TemplateDto to delete
deletedBy  UserSessionData
User deleting the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Exceptions

InvalidOperationExceptionThrown if the user deletedBy is not MobileTrack support
ArgumentNullExceptionThrown if templateItem or deletedBy was

See Also