Пример #1
0
        internal void DispachNotification(int idNotificacion)
        {
            var notiLogsList = _repoNotificaciones.GetNotificacionesLogs(idNotificacion);

            foreach (var notiLogModel in notiLogsList)
            {
                DispachNotification(notiLogModel);
            }
        }
Пример #2
0
        public List <NotificacionesLogModel> GetNotificacionesPorMostrar(string userName)
        {
            try
            {
                var notiList = _repoNotificaciones.GetNotificacionesLogs(userName);
                return(notiList);
            }
            catch (Exception ex)
            {
                if (ex.InnerException != null)
                {
                    if (ex.InnerException.InnerException != null)
                    {
                        throw ex.InnerException.InnerException;
                    }
                    else
                    {
                        throw ex.InnerException;
                    }
                }

                throw ex;
            }
        }