public IEnumerable <MemeDto> GetAllUnapprovedMemes() { var memes = _memeService.GetAllUnapproved(); var memesDto = _mapper.Map <IEnumerable <MemeDto> >(memes); foreach (var meme in memesDto) { meme.Likes = _memeService.GetRate((int)meme.Id); meme.Author = _mapper.Map <AuthorDto>(_memeService.GetMemeAuthor((int)meme.Id)); meme.ActiveDown = _memeService.IsActiveDown((int)meme.Id, Int32.Parse(this.User.FindFirst(ClaimTypes.Name).Value)); meme.ActiveUp = _memeService.IsActiveUp((int)meme.Id, Int32.Parse(this.User.FindFirst(ClaimTypes.Name).Value)); } return(memesDto.OrderByDescending(x => x.DateAdded)); }