protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserEmail"] == null)
            {
                btnHome.Visible = true;
                // btnInsertPT.Visible = false;
                // btnUpdatePT.Visible = false;
                //btnDeletePT.Visible = false;
                btnInsertPT.Visible = true;
                btnUpdatePT.Visible = true;
                btnDeletePT.Visible = true;
                labelID.Visible     = true;
                txtID.Visible       = true;
            }

            if (Session["UserEmail"] != null)
            {
                btnInsertPT.Visible = false;
                btnUpdatePT.Visible = false;
                btnDeletePT.Visible = false;
                labelID.Visible     = false;
                txtID.Visible       = false;

                string email = Session["UserEmail"].ToString();
                User   user  = userRepository.getEmail(email);

                if (user.RoleID == 1)
                {
                    btnInsertPT.Visible = true;
                    btnUpdatePT.Visible = true;
                    btnDeletePT.Visible = true;
                    labelID.Visible     = true;
                    txtID.Visible       = true;
                }
            }
            GridView.DataSource = PTRepository.getViewPT();
            GridView.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     GridView.DataSource = PTRepository.getViewPT();
     GridView.DataBind();
 }