public void Update(int id) { product = productRepository.GetByID(id); productRepository.Update(product); }