Exemplo n.º 1
0
        public async Task <IActionResult> RemoveObservableOperation(Guid operationId)
        {
            if (!ModelState.IsValid ||
                !ModelState.IsValidOperationId(operationId))
            {
                return(BadRequest(ErrorResponseFactory.Create(ModelState)));
            }

            await _observableOperationRepository.DeleteIfExist(operationId);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task DeleteOperations(params Guid[] opIds)
        {
            await _observableOperationRepository.DeleteIfExist(opIds);

            await _unconfirmedTransactionRepository.DeleteIfExist(opIds);
        }