Add required city field
This commit is contained in:
@@ -37,6 +37,7 @@ namespace MileageTraker.Web.ViewModels.CreateLog
|
||||
[Display(Name = "Destination City")]
|
||||
[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")]
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace MileageTraker.Web.ViewModels.CreateLog
|
||||
[Display(Name = "Destination City")]
|
||||
[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")]
|
||||
|
||||
Reference in New Issue
Block a user