예제 #1
0
        public List <Models.Log4Net_Error> GetNotificationsByUser(string userid)
        {
            List <Models.Log4Net_Error> notificatioosnlist = new List <Models.Log4Net_Error>();
            SNotification snoti         = new SNotification();
            var           notifications = snoti.GetNotificationsByUserUser(userid);


            if (notifications.Count > 0)
            {
                notificatioosnlist = notifications.Select(e => new Models.Log4Net_Error().InjectFrom(e)).Cast <Models.Log4Net_Error>().ToList();
                notificatioosnlist.Where(e => e.ImageUser == null).ToList().ForEach(e => e.ImageUser = "******");
            }

            return(notificatioosnlist);
        }
예제 #2
0
 public void GetNotificationsByUserUserTest()
 {
     SNotification        snoti         = new SNotification();
     List <Log4Net_Error> notifications = snoti.GetNotificationsByUserUser("ab580b7c-c15a-4e82-829f-91b91c1bed1a");
 }