public void delete(int id) { tipoProdRepo = new TipoProductoRepository(); TipoProducto tipo = tipoProdRepo.GetById(id); tipoProdRepo.Delete(tipo); }