diff Agendas/trunk/src/Agendas.Web/DataProviders.cs @ 180:222362c29416

UI para asignaciĆ³n de roles
author nelopauselli
date Mon, 08 Aug 2011 16:42:52 -0300
parents 734d3f0853bf
children f23ee59ef1bd
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Mon Aug 08 15:24:26 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs	Mon Aug 08 16:42:52 2011 -0300
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Web.Mvc;
+using AltNetHispano.Agendas.Domain;
 using AltNetHispano.Agendas.Factories;
 using AltNetHispano.Agendas.Web.Models;
 
@@ -23,5 +24,10 @@
                    select
                        new SelectListItem {Text = p.Nombre, Value = p.Id.ToString(), Selected = p.Id.Equals(id)};
         }
-    }
+
+		public static IEnumerable<string> GetRoles(this HtmlHelper helper)
+		{
+			return new[] {Roles.Administrador, Roles.Usuario};
+		}
+	}
 }