Exemplo n.º 1
0
        public static ActiveLogItem <T> Create(T item, IList <ActiveLog> alogs)
        {
            if (item == null)
            {
                return(null);
            }
            ActiveLog alog = alogs.FirstOrDefault(x => x.Record == item.Record());

            if (alog == null)
            {
                return(null);
            }
            ActiveLogItem <T> result = new ActiveLogItem <T>(item, alog);

            return(result);
        }
Exemplo n.º 2
0
 public ActiveLogItem(T item, ActiveLog alog)
 {
     Item      = item;
     ActiveLog = alog;
 }