Ejemplo 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());
        }
Ejemplo n.º 2
0
        public async Task DeleteOperations(params Guid[] opIds)
        {
            await _observableOperationRepository.DeleteIfExist(opIds);

            await _unconfirmedTransactionRepository.DeleteIfExist(opIds);
        }