private IEnumerable<IssueFeedModel> CreateIssueFeedForAuthority(IEnumerable<Issue> anIssues, UserInformationModel<User> aViewingUser, PersonFilter aPersonFilter) { List<IssueFeedModel> myFeedModels = new List<IssueFeedModel>(); foreach (Issue myIssue in anIssues) { IEnumerable<IssueDisposition> myIssueDisposition = myIssue.IssueDispositions; bool myIsAllowed = PrivacyHelper.IsAllowed(myIssue.User, PrivacyAction.DisplayProfile, aViewingUser); IssueFeedModel myFeedModel = new IssueFeedModel(myIssue.User) { Issue = myIssue, PersonFilter = aPersonFilter, IsAnonymous = !myIsAllowed, DateTimeStamp = TimezoneHelper.ConvertToLocalTimeZone(myIssue.DateTimeStamp) }; myFeedModels.Add(myFeedModel); } return myFeedModels; }
private IEnumerable<IssueFeedModel> CreateIssueFeed(IEnumerable<Issue> anIssues, User aViewingUser, PersonFilter aPersonFilter) { List<IssueFeedModel> myFeedModels = new List<IssueFeedModel>(); foreach (Issue myIssue in anIssues) { IEnumerable<IssueDisposition> myIssueDisposition = myIssue.IssueDispositions; IssueFeedModel myFeedModel = new IssueFeedModel(myIssue.User) { Issue = myIssue, PersonFilter = aPersonFilter, DateTimeStamp = TimezoneHelper.ConvertToLocalTimeZone(myIssue.DateTimeStamp) }; myFeedModels.Add(myFeedModel); } return myFeedModels; }