comparison Agendas/trunk/src/Agendas.Web/Models/PatrocinadorModel.cs @ 300:48ab8788bd19

#200: Patrocinadores: Agregar link al sitio web.
author juanjose.montesdeocaarbos
date Mon, 27 Feb 2012 14:45:12 -0300
parents 6f5ab71614d4
children
comparison
equal deleted inserted replaced
299:8522d6a25888 300:48ab8788bd19
3 using System.ComponentModel.DataAnnotations; 3 using System.ComponentModel.DataAnnotations;
4 using System.IO; 4 using System.IO;
5 using System.Linq; 5 using System.Linq;
6 using System.Web; 6 using System.Web;
7 using System.Web.Mvc; 7 using System.Web.Mvc;
8 using DataAnnotationsExtensions;
8 9
9 namespace AltNetHispano.Agendas.Web.Models 10 namespace AltNetHispano.Agendas.Web.Models
10 { 11 {
11 public class PatrocinadorIndexModel 12 public class PatrocinadorIndexModel
12 { 13 {
15 16
16 public class PatrocinadorDto 17 public class PatrocinadorDto
17 { 18 {
18 public Guid Id { get; set; } 19 public Guid Id { get; set; }
19 public string Nombre { get; set; } 20 public string Nombre { get; set; }
20 21 public string WebSite { get; set; }
21 } 22 }
22 23
23 public class PatrocinadorNewModel 24 public class PatrocinadorNewModel
24 { 25 {
25 [Required] 26 [Required]
26 public string Nombre { get; set; } 27 public string Nombre { get; set; }
28
29 [Required]
30 [Url]
31 public string WebSite { get; set; }
27 32
28 [Required] 33 [Required]
29 public HttpPostedFileBase Logo { get; set; } 34 public HttpPostedFileBase Logo { get; set; }
30 } 35 }
31 36
37 [Required] 42 [Required]
38 [HiddenInput] 43 [HiddenInput]
39 public string Nombre { get; set; } 44 public string Nombre { get; set; }
40 45
41 [Required] 46 [Required]
47 [Url]
48 public string WebSite { get; set; }
49
50 [Required]
42 public HttpPostedFileBase Logo { get; set; } 51 public HttpPostedFileBase Logo { get; set; }
43 } 52 }
44 } 53 }