vgquotes/Src/VideoGameQuotes.Web/Models/CreateGameModel.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

19 lines
625 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using VideoGameQuotes.Api;
namespace VideoGameQuotes.Web.Models {
public class CreateGameModel {
public CreateGameModel() {
GameRegions = Region.Unknown;
}
[Required(ErrorMessage = "The game must have a name, idiot")]
public string GameName { get; set; }
public string GameWebsite { get; set; }
public Region GameRegions { get; set; }
public List<int> PublisherIds { get; set; }
[Required(ErrorMessage = "At least one system must be specified, uglyface")]
public List<int> SystemIds { get; set; }
}
}