public List <Pago> MostrarPagos()
        {
            Conexion.Open();
            List <Pago> pagos = PagoRepository.MostrarPagos();

            Conexion.Close();
            return(pagos);
        }
        public List <Pago> MostrarPagos()
        {
            try
            {
                connection.Open();
                List <Pago> pagos = PagoRepository.MostrarPagos();

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