Validation for purpose select box working

This commit is contained in:
2013-03-03 20:43:13 -05:00
parent e911dfced7
commit 9f0e5f7b1d
6 changed files with 30 additions and 20 deletions
@@ -39,10 +39,10 @@ namespace MileageTraker.Web.ViewModels.CreateLog
[StringLength(64, MinimumLength = 3, ErrorMessage = "Minimum 3 characters")]
public string CityName { get; set; }
[Required(ErrorMessage = "Required")]
[Display(Name = "Trip Purpose")]
[Required]
public SelectListViewModel Purpose { get; set; }
[InputSize("large")]
public string Notes { get; set; }