public static OnlineGuestsInfo GetInstance() { if (guestsInfo == null) { guestsInfo = new OnlineGuestsInfo(); } return guestsInfo; }
protected void Page_Load(object sender, EventArgs e) { string guestId = this.Context.Items["GuestId"].ToString(); GuestsInfo = Application["OnlineGuestsInfo"] as OnlineGuestsInfo; Guest = GuestsInfo.GetGuestByGuestId(guestId); }