Exemplo n.º 1
0
        private JobAdBlockList GetSpecialBlockList(Guid memberId, BlockListType blockListType)
        {
            // If it doesn't exist then create it.

            var blockLists = _jobAdListsQuery.GetLists <JobAdBlockList>(memberId, (int)blockListType);

            return(blockLists.Count == 0
                ? CreateSpecialBlockList(memberId, blockListType)
                : blockLists[0]);
        }
Exemplo n.º 2
0
        private JobAdFlagList GetSpecialFlagList(Guid memberId, FlagListType flagListType)
        {
            // If it doesn't exist then create it.

            var lists = _jobAdListsQuery.GetLists <JobAdFlagList>(memberId, (int)flagListType);

            return(lists.Count == 0
                ? CreateSpecialFlagList(memberId, flagListType)
                : lists[0]);
        }
Exemplo n.º 3
0
 IList <JobAdFolder> IJobAdFoldersQuery.GetFolders(IMember member)
 {
     return(member == null
         ? new List <JobAdFolder>()
         : GetFolders(member.Id, _jobAdListsQuery.GetLists <JobAdFolder>(member.Id, ListTypes).ToList()).ToList());
 }