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); }
public ActiveLogItem(T item, ActiveLog alog) { Item = item; ActiveLog = alog; }