public List <VisitedProduct> GetVisitedProductByUserId(string userId)
        {
            var productModels = db.Products.GetProducts();

            db.Products.AddVisitedProductsToProducts(productModels, userId);
            var products = new List <VisitedProduct>();

            foreach (var productModel in productModels)
            {
                products.Add(factory.CreateProductWithVisits(productModel));
            }

            return(products);
        }