annotate Agendas/trunk/src/Agendas.Repositories.Memory/VanRepository.cs @ 8:cae27d7eb697

Se agregó ISeguridad para validar autenticaciones de usuarios. Agenda.Proponer modificado para validar que solo pueden Proponer eventos los usuarios autenticados.
author juanjose.montesdeocaarbos
date Sat, 12 Feb 2011 11:12:18 -0300
parents 49b572535156
children
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 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
7 public class VanRepository : EventoRepository, IVanRepository
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
8 {
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
9 #region IVanRepository Members
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
10
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents:
diff changeset
11 public Van 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;
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
14 return Objects.TryGetValue(vanId, out evento) ? evento as Van : null;
2
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 }