public IActionResult Update(Product product)
        {
            ProductOrganizator productOrganizator = new ProductOrganizator(product);

            productHistory.History.Push(productOrganizator.SaveState());
            return(RedirectToAction("Index"));
        }
        public IActionResult UpdatePost(Product product)
        {
            ProductOrganizator productOrganizator = new ProductOrganizator(product);

            productOrganizator.RestoreState(productHistory.History.Pop());
            product = productOrganizator.SaveState();
            ProductR.Update(product);
            return(RedirectToAction("Index"));
        }