public ActionResult DeletingProduct(long id)
        {
            ProductsRepository productRepository = new ProductsRepository();

            MallOfElectronics.Models.DataBase.Product product = new Models.DataBase.Product();
            product = productRepository.Find(id);
            return(View(product));
        }
        public ActionResult EditingProduct(long id)
        {
            MallOfElectronics.Models.DataBase.Product product = new Models.DataBase.Product();
            ProductsRepository productRepository = new ProductsRepository();

            product = productRepository.Find(id);
            TempData["prviousProduct"] = product;
            return(View(product));
        }
        public ActionResult DisplayProductDetails(int productId)
        {
            ProductsRepository productsrepository = new ProductsRepository();

            MallOfElectronics.Models.DataBase.Product product = new Models.DataBase.Product();
            product = productsrepository.Find(productId);
            CompanyRepository companyRepository = new CompanyRepository();

            ViewBag.companyName = (companyRepository.Find(product.CompanyId)).Name;
            return(View(product));
        }