public async Task <IClientAccount> GetByIdAsync(string id) { var partitionKey = ClientAccountEntity.GeneratePartitionKey(); var rowKey = ClientAccountEntity.GenerateRowKey(id); return(await _tradersTableStorage.GetDataAsync(partitionKey, rowKey)); }
public Task ChangePassword(string clientId, string newPassword) { var partitionKey = ClientAccountEntity.GeneratePartitionKey(); var rowKey = ClientAccountEntity.GenerateRowKey(clientId); return(_tradersTableStorage.ReplaceAsync(partitionKey, rowKey, itm => { itm.SetPassword(newPassword); return itm; })); }