Add notes

This commit is contained in:
2013-03-05 15:09:21 -05:00
parent 47a60965fe
commit ff0b18a9fd
12 changed files with 76 additions and 4 deletions
+5 -2
View File
@@ -24,14 +24,17 @@ namespace MileageTraker.Web.Models
[Display(Name = "Type")]
public MileageLogTypeWrapper LogType { get; set; }
[Required]
public virtual User User { get; set; }
[Required]
[StringLength(64, MinimumLength = 3, ErrorMessage = "Minimum 3 characters")]
public string CityName { get; set; }
public virtual PurposeType Purpose { get; set; }
[Required]
public virtual User User { get; set; }
[StringLength(64, MinimumLength = 3, ErrorMessage = "Minimum 3 characters")]
public string Notes { get; set; }
[Range(0, 50)]
public double GasPurchased { get; set; }