protected void Page_Load(object sender, EventArgs e)
        {
            UserService us = new UserService();
            int id = (int) Session["id"];
            user u = new user();
            u.user_id = id;
            u = us.getUserById(u);

            order orderInDb = (order) Session["paidTicket"];
            if (orderInDb == null)
            {
                Server.Transfer("payment.aspx");
            }

            this.payment.Value = orderInDb.payment.ToString();
            this.plane_name.Value = orderInDb.flight.flight_name;
            this.city_from.Value = orderInDb.flight.air_line.city_from;
            this.city_to.Value = orderInDb.flight.air_line.city_to;
            this.departure_time.Value = orderInDb.flight.air_line.schedule_departure.ToString("c");
            this.arrival_time.Value = orderInDb.flight.air_line.schedule_arrival.ToString("c");
            this.flight_date.Value = orderInDb.flight.arrival_date.ToString("d");
            this.user_name.Value = u.user_name;
            this.card_id.Value = u.id_card_NO;
            this.phone.Value = u.phone;
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["id"] == null)
     {
         var response = base.Response;
         response.Redirect("login.aspx");
     }
     UserService us = new UserService();
     user u = new user();
     u.user_id = (int)Session["id"];
     u = us.getUserById(u);
     uInDb = u;
 }