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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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