コード例 #1
0
        public List <Pais> BuscarTodosPaises()
        {
            try
            {
                Pais_DAO dao = new Pais_DAO();

                return(dao.BuscarTodos());
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
コード例 #2
0
        public Pais BuscarPorPaisID(int id)
        {
            try
            {
                Pais_DAO dao = new Pais_DAO();

                return(dao.BuscarPorID(id));
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
コード例 #3
0
        public void Inserir_Pais(Pais _pais)
        {
            Pais_DAO dao = new Pais_DAO();

            dao.InserirPais(_pais);
        }