/// <summary> /// Deactivate all users of an organization, occurs /// when org is deleted. /// </summary> /// <param name="organizationId">The org id to search.</param> public static void DeactivateUsersOfOrg(int organizationId) { _userDao.UpdateColumn(new DaoCriteria( new EqualExpression("Organization", organizationId)), "Active", false ); }