vgquotes/Src/VideoGameQuotes.Web/Models/CreateSystemModel.cs
tmont d159a91208 * submit quote is a little bit sexier (still needs some work)
* added the loading gif when you vote on a quote
2011-02-23 01:30:53 +00:00

13 lines
615 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace VideoGameQuotes.Web.Models {
public class CreateSystemModel {
[Required(ErrorMessage = "Systems must have a name, fatty")]
public string SystemName { get; set; }
[Required(ErrorMessage = "Abbreviation is required, ugly"), StringLength(12, ErrorMessage = "Abbreviations cannot be longer than 12 characters, flabcakes")]
public string SystemAbbreviation { get; set; }
[Required(ErrorMessage = "How about giving an accurate release date (try Wikipedia), nardlover?")]
public DateTime SystemReleaseDate { get; set; }
}
}