int IJobAdBlockListsQuery.GetBlockedCount(IMember member) { if (member == null) { return(0); } var counts = _jobAdListsQuery.GetListedCounts(member.Id, ListTypes, null); return(counts.Count != 1 ? 0 : counts.First().Value); }
int IJobAdFlagListsQuery.GetFlaggedCount(IMember member) { if (member == null) { return(0); } var counts = _jobAdListsQuery.GetListedCounts(member.Id, ListTypes, NotIfInListTypes); return(counts.Count != 1 ? 0 : counts.First().Value); }
IDictionary <Guid, int> IJobAdFoldersQuery.GetInFolderCounts(IMember member) { return(member == null ? new Dictionary <Guid, int>() : _jobAdListsQuery.GetListedCounts(member.Id, ListTypes, NotIfInListTypes)); }