public ActionResult CloseRoom() { HttpContext.Session.SetString("inRoom", "false"); String roomId = HttpContext.Session.GetString("roomId"); courses.CloseRoom(Guid.Parse(roomId)); return(Json(new { Id = roomId })); }