public ActionResult GetJoinChatroomForm(GetJoinChatroomFormRequestModel request) { var response = new PartialViewModel(); var model = new GetJoinChatroomFormResponseModel(); model.HasPassword = ChatroomService.HasPassword(request.ParentChatroomId, request.ChatroomId); model.ChatroomName = ChatroomService.GetChatroomName(request.ParentChatroomId, request.ChatroomId); model.NewChatroomId = request.ChatroomId; response.Data = RenderPartialViewToString(this.ControllerContext, "~/Views/Chatroom/_JoinChatroomForm.cshtml", model); return(Json(response)); }