public async Task <IClientAccount> GetByIdAsync(string id) { var partitionKey = ClientAccountEntity.GeneratePartitionKey(); var rowKey = ClientAccountEntity.GenerateRowKey(id); return(await _clientsTablestorage.GetDataAsync(partitionKey, rowKey)); }
public async Task <bool> IsTrusted(string clientId) { var entity = await _clientsTablestorage.GetDataAsync(ClientAccountEntity.GeneratePartitionKey(), ClientAccountEntity.GenerateRowKey(clientId)); return(entity?.IsTrusted ?? false); }