Ejemplo n.º 1
0
    private void PopulateGlobalPermission()
    {
        using (ResourceDataAccess resDataAccess = new ResourceDataAccess())
        {
            IEnumerable <PermissionMap> permissionMap = resDataAccess.GetCreatePremissions(Id.ToString(), userToken);

            grdGlobalPermission.DataSource = permissionMap;
            grdGlobalPermission.DataBind();


            if (grdGlobalPermission.Rows.Count <= 0)
            {
                GlobalPermissionPanel.Visible = false;
            }
        }
    }