Add index and create

This commit is contained in:
2014-05-20 14:24:08 -04:00
parent ef88c52658
commit 0fcfa3a3a1
8 changed files with 159 additions and 22 deletions
+7
View File
@@ -1,12 +1,19 @@
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using MileageTraker.Web.Attributes;
namespace MileageTraker.Web.Models
{
public class City
{
[Key]
[HiddenInput(DisplayValue = false)]
public int CityId { get; set; }
[Display(Name = "City Name")]
[InputSize("medium")]
[Required]
public string Name { get; set; }
[Required]
public string County { get; set; }
}
}