public void addToCart(int MovieId) { var db = new CartBLL(); if (Session["Cart"] != null) { db.addOrderline(this.Session.SessionID, MovieId); } }