コード例 #1
0
        public async Task <IActionResult> DeleteBroadcast([Required] Guid operationId)
        {
            var broadcast = await _dynamicService.GetBroadcastAsync(operationId);

            if (broadcast == null)
            {
                return(NoContent());
            }

            await _log.WriteInfoAsync(nameof(TransactionsController), nameof(DeleteBroadcast),
                                      new { operationId = operationId }.ToJson(),
                                      "Delete broadcast");

            await _buildRepository.DeleteAsync(operationId);

            await _dynamicService.DeleteBroadcastAsync(broadcast);

            return(Ok());
        }