protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (ValidationUser.staffAcess(Convert.ToString(Session["loginidst"])) != null)
                {
                    DataContextDataContext Dtx = new DataContextDataContext();

                    var Booking = from b in Dtx.VW_Bookings select b;
                    GridviewBooking.DataSource = Booking;
                    GridviewBooking.DataBind();
                }
                else
                {
                    Response.Redirect(@"\Views\LoginAdmin.aspx");
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    DataContextDataContext Dtx = new DataContextDataContext();

                    var result = (from c in Dtx.Customers where c.id_customer == Convert.ToInt32(Session["loginidct"]) select c).FirstOrDefault();
                    TxtName.Text  = result.name;
                    TxtEmail.Text = result.email;
                    TxtPhone.Text = result.phone;

                    var Booking = from b in Dtx.VW_Bookings where b.id_customer == Convert.ToInt32(Session["loginidct"]) select b;
                    GridviewBooking.DataSource = Booking;
                    GridviewBooking.DataBind();
                }
                catch (Exception)
                {
                    Response.Redirect("~/Views/LoginUser.aspx");
                }
            }
        }