Add required city field

This commit is contained in:
2014-05-21 10:17:05 -04:00
parent b2f8baaca6
commit 365aa47328
10 changed files with 70 additions and 41 deletions
+1
View File
@@ -47,6 +47,7 @@ namespace MileageTraker.Web.ViewModels.Log
[Display(Name = "City Name")]
[InputSize("medium")]
[StringLength(64, MinimumLength = 3, ErrorMessage = "Minimum 3 characters")]
[Remote("CityNameExists", "City", ErrorMessage = "City must exist in system")]
public string CityName { get; set; }
[Display(Name = "Purpose")]