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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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