protected IList GetFeedEntriesSimple() { if (String.IsNullOrEmpty(_rssType)) { throw new InvalidOperationException("rssType is empty or null"); } ObjectProvider repository = ObjectProvider.Instance(); switch (_rssType) { case "Comment": FeedbackStatusFlag flags = FeedbackStatusFlag.None; foreach (string filter in _filters) { if (Enum.IsDefined(typeof(FeedbackStatusFlag), filter)) { flags |= (FeedbackStatusFlag)Enum.Parse(typeof(FeedbackStatusFlag), filter, true); } } ICollection <FeedbackItem> moderatedFeedback = repository.GetPagedFeedback(0, _count, flags, FeedbackStatusFlag.None, FeedbackType.None); return((IList)moderatedFeedback); case "Referral": //TODO: Fix! ICollection <Referrer> referrers = repository.GetPagedReferrers(0, _count, NullValue.NullInt32); return((IList)referrers); case "Log": ICollection <LogEntry> entries = LoggingProvider.Instance().GetPagedLogEntries(0, _count); return((IList)entries); } return(null); }