diff 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
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