view Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.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 48ab8788bd19
children
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DataAnnotationsExtensions;

namespace AltNetHispano.Agendas.Web.Models
{
	public class PatrocinadorIndexModel
	{
		public IEnumerable<PatrocinadorDto> Items { get; set; }
	}

	public class PatrocinadorDto
	{
		public Guid Id { get; set; }
		public string Nombre { get; set; }
		public string WebSite { get; set; }
	}

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

		[Required]
		[Url]
		public string WebSite { get; set; }

		[Required]
		public HttpPostedFileBase Logo { get; set; }
	}

	public class PatrocinadorEditModel
	{
		[HiddenInput(DisplayValue = false)]
		public string Id { get; set; }

		[Required]
		[HiddenInput]
		public string Nombre { get; set; }

		[Required]
		[Url]
		public string WebSite { get; set; }

		[Required]
		public HttpPostedFileBase Logo { get; set; }
	}
}