changeset 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 4a4e12e32256
files Agendas/trunk/src/Agendas.Domain/Track.cs
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Domain/Track.cs	Mon May 16 20:23:31 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Domain/Track.cs	Mon May 16 20:24:50 2011 -0300
@@ -2,23 +2,23 @@
 {
 	public class Track
 	{
-		public Track(string accion)
+		public Track(Accion accion)
 		{
 			Usuario = IdentityContext.GetUserName();
 			Accion = accion;
 		}
 
-		public string Accion { get; private set; }
+		public Accion Accion { get; private set; }
 		protected string Usuario { get; private set; }
 	}
 
-	public class Accion
+	public enum Accion
 	{
-		public const string Proponer = "Proponer";
-		public const string Publicar = "Publicar";
-		public const string Modificar = "Modificar";
-		public const string CambiarTitulo = "CambiarTitulo";
-		public const string Realizar = "Realizar";
+		Proponer = 1,
+		Publicar = 2,
+		Modificar = 3,
+		CambiarTitulo = 4,
+		Realizar = 5	
 	}
 
 }
\ No newline at end of file