public IActionResult PostChat([FromBody] ChatMessage chatItem) { _manager.AddChat(chatItem); //broadcast the chat to all the clients _chatHub.SendMessage(chatItem); return(Json(new { Success = "true" })); }
public void AddChat(Guid guid, List <User> users) { cm?.AddChat(guid, users); }