comparison Agendas/trunk/src/Agendas.Domain/Track.cs @ 58:37d99d239cae

Cambiando constantes por enum en el track de cambios en Evento
author nelopauselli
date Mon, 16 May 2011 20:24:50 -0300
parents 3d9e6d56d903
children 963b71ea6028
comparison
equal deleted inserted replaced
57:3d9e6d56d903 58:37d99d239cae
1 namespace AltNetHispano.Agendas.Domain 1 namespace AltNetHispano.Agendas.Domain
2 { 2 {
3 public class Track 3 public class Track
4 { 4 {
5 public Track(string accion) 5 public Track(Accion accion)
6 { 6 {
7 Usuario = IdentityContext.GetUserName(); 7 Usuario = IdentityContext.GetUserName();
8 Accion = accion; 8 Accion = accion;
9 } 9 }
10 10
11 public string Accion { get; private set; } 11 public Accion Accion { get; private set; }
12 protected string Usuario { get; private set; } 12 protected string Usuario { get; private set; }
13 } 13 }
14 14
15 public class Accion 15 public enum Accion
16 { 16 {
17 public const string Proponer = "Proponer"; 17 Proponer = 1,
18 public const string Publicar = "Publicar"; 18 Publicar = 2,
19 public const string Modificar = "Modificar"; 19 Modificar = 3,
20 public const string CambiarTitulo = "CambiarTitulo"; 20 CambiarTitulo = 4,
21 public const string Realizar = "Realizar"; 21 Realizar = 5
22 } 22 }
23 23
24 } 24 }