annotate Agendas/trunk/src/Agendas.Repositories.Memory/CafeRepository.cs @ 3:5f007e266509

code cleanup
author nelopauselli
date Sat, 22 Jan 2011 20:23:50 -0300
parents c03560ae4762
children 49b572535156
rev   line source
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
1 using System;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
2 using AltNetHispano.Agendas.Domain;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
3 using AltNetHispano.Agendas.Domain.Repositories;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
4
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
5 namespace Agendas.Repositories.Memory
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
6 {
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
7 public class CafeRepository : EventoRepository, ICafeRepository
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
8 {
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
9 #region ICafeRepository Members
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
10
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
11 public Cafe Get(Guid vanId)
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
12 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
13 Evento evento;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
14 return Eventos.TryGetValue(vanId, out evento) ? evento as Cafe : null;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
15 }
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
16
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
17 #endregion
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
18 }
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
19 }