AccountRepositoryGetAccountById Method

Retrieves a single account.

Definition

Namespace: MobileTrack.DataContainers.Repositories
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<AccountDto?> GetAccountById(
	CompanyDto company,
	Guid accountId,
	bool deletedItem,
	CancellationToken cancellationToken
)

Parameters

company  CompanyDto
Company to get the accounts from
accountId  Guid
Account to look up.
deletedItem  Boolean
If , we'll return the soft-deleted item. If , a non-deleted item.
cancellationToken  CancellationToken
Cancellation token

Return Value

TaskAccountDto
Found account, or if not found.

Exceptions

InvalidOperationExceptionThrown if the account was not found.

See Also