public List <BlogDto> GetFavoritesByUserId(int userId)
        {
            var            favorites = _favoriteRepository.GetDataFavoritesByUserId(userId);
            List <BlogDto> blogDtos  = new List <BlogDto>();

            blogDtos = favorites.Where(x => x.IsDelete == false).Select(f => new BlogDto()
            {
                Id         = f.Id,
                Detail     = f.Detail,
                ImageHead  = f.ImageHead,
                ImagePath  = f.ImagePath,
                Owner      = _mapper.Map <ProfileDto>(f.Owner),
                OwnerId    = f.OwnerId,
                Title      = f.Title,
                Createtime = f.CreateDateTime,
                Topic      = _mapper.Map <TopicDto>(f.Topic),
                TopicId    = f.TopicId
            }).ToList();
            return(blogDtos);
        }