private async Task Publish(StockDetailDto userDto)
        {
            var @event = new StockUpdateEvent
            {
                Context   = new Context(),
                StockName = userDto.StockName,
                Quantity  = userDto.Quantity,
                UserName  = userDto.UserName
            };

            await _evenBus.Publish <StockUpdateEvent>(@event);
        }
 public void UpdateStockReport(StockUpdateEvent @event)
 {
     _repository.UpdateStockReport(@event.UserName, @event.StockName, @event.Quantity);
 }