Exemplo n.º 1
0
        private void ExecuteRemove()
        {
            Product product = View.ProductList.SelectedItem as Product;

            MainVM.ProductRepository.RemoveById(product.Id);
            MainVM.ProductRepository.SaveChanges();
            MainVM.UpdateMainList(MainVM.GetListOfCurrentType(MainVM.ProductRepository.GetAll()));
        }