Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Model

By: a guest on Feb 21st, 2013  |  syntax: C#  |  size: 1.24 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     public class RegisterModel
  2.     {
  3.         [Required]
  4.         public string SelectedHmc { get; set; }
  5.  
  6.         public SelectList HmcList { get; set; }
  7.  
  8.         [Required]
  9.         public string SelectedCity { get; set; }
  10.  
  11.         public SelectList CityList { get; set; }
  12.  
  13.         [Required]
  14.         public string SelectedStreet { get; set; }
  15.  
  16.         public SelectList StreetList { get; set; }
  17.  
  18.         [Required]
  19.         public string SelectedHouse { get; set; }
  20.  
  21.         public SelectList HouseList { get; set; }
  22.  
  23.         [Required]
  24.         public string AppartmentNumber { get; set; }
  25.  
  26.         [Required]
  27.         [DataType(DataType.EmailAddress)]
  28.         public string Email { get; set; }
  29.  
  30.         [Required]
  31.         [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
  32.         [DataType(DataType.Password)]
  33.         public string Password { get; set; }
  34.  
  35.         [Required]
  36.         [DataType(DataType.Password)]
  37.         [System.Web.Mvc.Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
  38.         public string ConfirmPassword { get; set; }
  39.  
  40.         [DataType(DataType.PhoneNumber)]
  41.         public string PhoneNumber { get; set; }
  42.  
  43.     }