// Method called for mutation
        public Message AddMessage(Message message)
        {
            // Saving the data to the database
            var new_message = _cassandraRepository.AddMessage(message);

            // Pushing the data to event stream for subscription
            this.AddEvent(new_message);
            // Pushing data to the hub for SignalR
            var data = JsonConvert.SerializeObject(new_message);

            _hubContext.Clients.All.SendAsync("BroadcastMessage", data);
            return(message);
        }
 public Message AddMessage(Message message)
 {
     _cassandraRepository.AddMessage(message);
     this.AddEvent(message);
     return(message);
 }