Exemplo n.º 1
0
        public void AddRoom(Room model)
        {
            var id = _chatRepository.AddRoom(model);

            model.Id = id;
            var result = ChatController.RenderViewToString(ControllerContext, "_Room", model);

            ChatHub.AddRoom(result);
        }