Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs @ 38:3c5657d99727
Cambio de setters de las propiedades a private
author | nelo@MTEySS.neluz.int |
---|---|
date | Thu, 17 Mar 2011 23:16:35 -0300 |
parents | 475be11edf56 |
children | 65bbcdd5d357 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs Thu Mar 17 17:04:03 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs Thu Mar 17 23:16:35 2011 -0300 @@ -10,11 +10,8 @@ { public void Save(Evento evento) { - if (Guid.Empty.Equals(evento.Id)) - { - evento.Id = Guid.NewGuid(); + if (!Objects.Keys.Contains(evento.Id)) Objects.Add(evento.Id, evento); - } } public void Update(Evento evento)