public async Task <IForwardWithdrawal> TryGetByCashoutIdAsync(string clientId, string cashoutId)
        {
            var byClientId = await _tableStorage.GetDataAsync(ForwardWithdrawalEntity.GeneratePartitionKey(clientId));

            return(byClientId.FirstOrDefault(x => x.CashOutId == cashoutId));
        }
 public Task <bool> DeleteIfExistsAsync(string clientId, string id)
 {
     return(_tableStorage.DeleteIfExistAsync(
                ForwardWithdrawalEntity.GeneratePartitionKey(clientId),
                ForwardWithdrawalEntity.GenerateRowKey(id)));
 }
 public async Task <IForwardWithdrawal> TryGetAsync(string clientId, string id)
 {
     return(await _tableStorage.GetDataAsync(
                ForwardWithdrawalEntity.GeneratePartitionKey(clientId),
                ForwardWithdrawalEntity.GenerateRowKey(id)));
 }