vgquotes/Src/VideoGameQuotes.Web/Models/EditSystemModel.cs

18 lines
766 B
C#
Raw Normal View History

using System;
using System.ComponentModel.DataAnnotations;
namespace VideoGameQuotes.Web.Models {
2011-02-23 21:53:51 +00:00
public class EditSystemModel {
public int SystemId { get; set; }
2011-02-27 08:47:16 +00:00
[StringLength(1024, ErrorMessage = "Icons must be less than 1KB")]
public string SystemIcon { get; set; }
[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; }
}
}