private int AddData()
        {           
            string PortalId = ddlPortalList.SelectedValue;
            if (ddlPortalList.SelectedValue == "0")
            {
                Response.Write("<script>alert('Vui lòng chọn ứng dụng');window.history.back();</script>");
                Response.End();
                return -1;
            }
            else
            {                
                Modules module_obj = new Modules();
                string ModuleTitle = txtName.Text;

                bool AllTab = false, IsAdmin = false, IsDeleted = false, InheritViewPermissions = false;
                if (ckbAllTab.Checked)
                    AllTab = true;
                if (ckbIsAdmin.Checked)
                    IsAdmin = true;
                if (ckbIsDeleted.Checked)
                    IsDeleted = true;
                if (ckbckbInheritViewPermissions.Checked)
                    InheritViewPermissions = true;

                int result = module_obj.Insert(PortalId, ModuleTitle, AllTab, IsAdmin, IsDeleted, InheritViewPermissions);
                return result;
            }
        }