view Agendas/trunk/src/Agendas.Web/Models/PerfilModel.cs @ 302:11dddcc9a862 tip

Historico de Eventos, no muestra bien la Url del Patrocinador.
author juanjose.montesdeocaarbos
date Tue, 14 Aug 2012 21:54:30 -0300
parents 1deccd6c3cb2
children
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace AltNetHispano.Agendas.Web.Models
{
	public class PerfilIndexModel
	{
		public PerfilIndexModel()
		{
			Cuentas = new CuentaDto[] {};
		}

		public Guid  Id { get; set; }

		public string DisplayName { get; set; }

		[DataType(DataType.EmailAddress)]
		public string Email { get; set; }

		[DataType(DataType.Url)]
		public string Blog { get; set; }

		public IEnumerable<CuentaDto> Cuentas { get; set; }
	}

	public class PerfilEditModel
	{
		[Required]
		public string Nombre { get; set; }

		[Required]
		public string Twitter { get; set; }

		[Required]
		public string EMail { get; set; }

		[DataType(DataType.Url)]
		public string Blog { get; set; }
	}

	public class CuentaDto
	{
		public string IdentityProvider { get; set; }
		public string UserName { get; set; }
	}
}