Add index and create
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user