public Shell <bool> Bind([FromBody] Shell <uint> roomID) { uint pid = db.Get <uint>("SELECT pid FROM voa.process WHERE roomID={0}", roomID); var session = RoomSession.Open(roomID, pid); Response.Cookies.Append("session", session.ToString()); db.Execute("UPDATE voa.process SET isload=b'1' WHERE pid={0};", pid); return(true); }