Esempio n. 1
0
        public AdmPrestamo()
        {
            _prestamoMapper   = new PrestamoMapper();
            _utilidadesMapper = new UtilidadesMapper();

            _admCliente  = new AdmCliente();
            _admPelicula = new AdmPelicula();

            _consultaPrestamos = new List <Prestamo>();

            _consultaPrestamos = TraerPrestamos();
        }
Esempio n. 2
0
        private TransactionResult EnviarMail(Cuenta cuenta)
        {
            Cliente cliente = _lstCliente.SingleOrDefault(x => x.Id == cuenta.IdCliente);

            if (cliente != null && cliente.Email != null)
            {
                Utilidades        envio     = new Utilidades(cliente.Email, "Actualizacion de Saldo", "Nuevo saldo: $" + cuenta.Saldo.ToString("C") + "\nFecha Actualizacion: " + DateTime.Now.ToString());
                TransactionResult resultado = UtilidadesMapper.EnviarMail(envio);
                return(resultado);
            }
            else
            {
                return(null);
            }
        }