Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 IDictionary <Guid, int> IJobAdFoldersQuery.GetInFolderCounts(IMember member)
 {
     return(member == null
         ? new Dictionary <Guid, int>()
         : _jobAdListsQuery.GetListedCounts(member.Id, ListTypes, NotIfInListTypes));
 }