public List <Product> GetProducts()
        {
            var productModels = db.Products.GetProductsWithProperties();
            //db.Products.AddCategoriesToProducts(productModels);
            var products = new List <Product>();

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

            return(products);
        }