diff Agendas/trunk/src/Agendas.Domain/Track.cs @ 182:beeb48ddb44a

Warning con los errores que se guarden en el log del track de un evento durante una notificación (twitter, calendar, blog)
author nelopauselli
date Mon, 08 Aug 2011 21:57:10 -0300
parents 6f1041301797
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Domain/Track.cs	Mon Aug 08 20:08:31 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Domain/Track.cs	Mon Aug 08 21:57:10 2011 -0300
@@ -6,6 +6,7 @@
 	public class Track : Identificable
 	{
 		private readonly IList<TrackLog> _logs;
+		private readonly ICollection<TrackLog> _newLogs = new List<TrackLog>();
 
 		protected Track()
 		{
@@ -34,6 +35,13 @@
 		{
 			trackLog.Track = this;
 			_logs.Add(trackLog);
+			_newLogs.Add(trackLog);
+
+		}
+
+		public virtual IEnumerable<TrackLog> GetLogsNews()
+		{
+			return _newLogs;
 		}
 	}