public void AddRoom(Room model) { var id = _chatRepository.AddRoom(model); model.Id = id; var result = ChatController.RenderViewToString(ControllerContext, "_Room", model); ChatHub.AddRoom(result); }
public void AddRoom(Room model) { var id = _chatRepository.AddRoom(model); model.Id = id; var result = ChatController.RenderViewToString(ControllerContext, "_Room", model); ChatHub.AddRoom(result); }