private void UndoRoleDelete(string roleID) { RecycleRolesController rolesController = new RecycleRolesController(); Guid role = new Guid(roleID); rolesController.RestorePortalRole(role); }
private void DeleteRole(string roleID, int portID) { RecycleRolesController rolesController = new RecycleRolesController(); Guid role = new Guid(roleID); rolesController.DeleteRole(role, portID); }
private void BindDeletedRoles() { RecycleRolesController rolesController = new RecycleRolesController(); List <RecycleRolesInfo> lstRecycleRolesInfo = rolesController.GetDeletedRoles(); if (lstRecycleRolesInfo == null || lstRecycleRolesInfo.Count <= 0) { pnlRoles.Visible = false; } else { gdvRoles.DataSource = lstRecycleRolesInfo; gdvRoles.DataBind(); } }