IAzureCosmosDbDeleteCompany Method

Deletes an entire company from the database; AccountDto's, EnvironmentDto's, the CompanyDto itself, etc.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task DeleteCompany(
	CompanyDto company,
	UserSessionData deletedBy
)

Parameters

company  CompanyDto
Company to delete
deletedBy  UserSessionData
User deleting the items

Return Value

Task
Task completion

Remarks

This method does not utilise a CancellationToken since we cannot allow it to be disrupted, as it would ensure data would be left in the database that we don't want to be there anymore.

Exceptions

UnauthorizedAccessExceptionThrown if the user deletedBy did not have the correct permissions
ArgumentNullExceptionThrown if company or deletedBy was

See Also