public void Agregar(Interprete interprete) { try { cn = new ConexionBd(); repositorio = new RepositorioInterpretes(cn.AbrirConexion()); repositorio.Agregar(interprete); cn.CerrarConexion(); } catch (Exception e) { throw new Exception(e.Message); } }
public void Agregar(Interprete interprete) { try { cn = new ConexionBd(); repositorio = new RepositorioInterpretes(cn.AbrirConexion()); repositorio.Agregar(interprete); cn.CerrarConexion(); } catch (Exception e) { throw new Exception(e.Message); } }