Exemple #1
0
        public List <ObjetoNotificacion> ObtenerEstadisticas(string nombreUsuario)
        {
            var notificaciones           = SistemaConciliacion.GetListaEventos();
            var notificacionesDelUsuario = notificaciones.Where(n => n.usuario == nombreUsuario);

            if (notificacionesDelUsuario == null || notificacionesDelUsuario.Count() == 0)
            {
                return(new List <ObjetoNotificacion>());
            }
            else
            {
                return(notificacionesDelUsuario.ToList());
            }
        }
Exemple #2
0
 public void GuardarEvento(ObjetoNotificacion notificacion)
 {
     Console.WriteLine(notificacion.msg);
     SistemaConciliacion.GetListaEventos().Add(notificacion);
 }