public Task<AccountDto> CreateAccount(
AccountDto account,
CompanyDto accountOwner,
UserSessionData createdBy,
CancellationToken cancellationToken = default
)| UnauthorizedAccessException | Thrown if the user createdBy did not have the correct permissions |
| CosmosException | Thrown if the Azure Cosmos DB returns a non-OK result |
| ArgumentNullException | Thrown if account, accountOwner or createdBy are |
| ResourceInvalidStateException | Thrown if account is in an invalid state. |