public List <PrivacyFlagType> GetListPrivacyFlagType(Account Account, Account AccountBeingViewed) { List <PrivacyFlagType> listPrivacyFlagTypeSelect = new List <PrivacyFlagType>(); List <PrivacyFlagType> listPrivacyFlagType = _privacyRepository.GetPrivacyFlagTypes(); List <PrivacyFlag> listPrivacyFlag = _privacyRepository.GetPrivacyFlagsByProfileID(_profileRepository.GetProfileByAccountID(AccountBeingViewed.AccountID).ProfileID); foreach (PrivacyFlagType priFlagType in listPrivacyFlagType) { if (ShouldShow(priFlagType.PrivacyFlagTypeID, AccountBeingViewed, Account, listPrivacyFlag)) { listPrivacyFlagType.Add(priFlagType); } } return(listPrivacyFlagType); }
public List <PrivacyFlagType> GetPrivacyFlagTypes() { return(_privacyRepository.GetPrivacyFlagTypes()); }