private async Task <ICashOutRequest> ChangeStatus(string clientId, string requestId, CashOutRequestStatus status)
        {
            var entity = await _tableStorage.DeleteAsync(CashOutAttemptEntity.PendingRecords.GeneratePartition(clientId),
                                                         CashOutAttemptEntity.PendingRecords.GenerateRowKey(requestId));

            entity.PartitionKey = CashOutAttemptEntity.HistoryRecords.GeneratePartition();
            entity.Status       = status;

            return(await _tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(entity, entity.DateTime));
        }
        private async Task <CashOutBaseEntity> ChangeStatus(string clientId, string requestId, CashOutRequestStatus status)
        {
            var entity = await _tableStorage.DeleteAsync(clientId, requestId);

            entity.PartitionKey = "Processed";
            entity.Status       = status;

            return(await _tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(entity, entity.DateTime));
        }