ItemBaseRepositoryTDelete(T, Guid, CompanyDto, Boolean, CancellationToken) Method

Delete a business object instance permanently from the cloud

Definition

Namespace: MobileTrack.DataContainers.Repositories
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal Task Delete(
	T model,
	Guid deletedBy,
	CompanyDto company,
	bool forceDelete,
	CancellationToken cancellationToken
)

Parameters

model  T
The item to remove
deletedBy  Guid
AccountDto deleting the item
company  CompanyDto
CompanyDto of the item owning the object.
forceDelete  Boolean
If , then we will delete the item permanently regardless of company settings.
cancellationToken  CancellationToken
Cancellation Token, which will be inserted in the Azure Tasks

Return Value

Task
Task completion

Exceptions

InvalidOperationExceptionIf the item was not deleted

See Also