public ActionResult Index()
        {
            IEnumerable <Category>    categories         = _productService.GetAllCategories();
            IList <CategoryBrandView> categoryBrandViews = CategoryBrandViewMapper.GetCategoryBrandViews(categories);

            ViewData["categories"] = categoryBrandViews;

            return(View());
        }
        public ActionResult CategoryProducts(int categoryId)
        {
            IEnumerable <Category>   categories         = _productService.GetAllCategories();
            IEnumerable <Product>    products           = _productService.GetAllProductsIn(categoryId);
            List <CategoryBrandView> categoryBrandViews = CategoryBrandViewMapper.GetCategoryBrandViews(categoryId, categories, products);

            ViewData["categories"] = categoryBrandViews;

            return(View(products));
        }