Beispiel #1
0
 public List <Credito> MostrarCredito()
 {
     Conexion.Open();
     Creditos = CreditoRepository.MostrarCreditos();
     Conexion.Close();
     return(Creditos);
 }
        public List <Credito> MostrarCredito()
        {
            try
            {
                connection.Open();
                Creditos = CreditoRepository.MostrarCreditos();

                return(Creditos);
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                connection.Closed();
            }
        }