view Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.cs @ 279:1e889a2e45c5

#125: ABM de patrocinadores.
author juanjose.montesdeocaarbos
date Thu, 22 Dec 2011 10:04:08 -0300
parents 6f5ab71614d4
children 48ab8788bd19
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;

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 class PatrocinadorNewModel
	{
		[Required]
		public string Nombre { 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]
		public HttpPostedFileBase Logo { get; set; }
	}
}