public async Task <int> GetTotalVotesAsync(TierQueryDto tierQueryDto) { int journalistVotes = 0; int mediaVotes = 0; if (tierQueryDto.JournalistId > 0) { journalistVotes = await _journalistRepo.GetTotalVotesAsync(tierQueryDto.JournalistId); } if (tierQueryDto.MediaId > 0) { mediaVotes = await _mediaRepo.GetTotalVotesAsync(tierQueryDto.MediaId); } return(journalistVotes + mediaVotes); }