2011-02-22 09:39:59 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using VideoGameQuotes.Api;
|
|
|
|
|
|
|
|
|
|
namespace VideoGameQuotes.Web.Models {
|
|
|
|
|
public class CreateGameModel {
|
2011-02-23 01:30:53 +00:00
|
|
|
|
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; }
|
2011-02-22 09:39:59 +00:00
|
|
|
|
public List<int> PublisherIds { get; set; }
|
2011-02-23 01:30:53 +00:00
|
|
|
|
[Required(ErrorMessage = "At least one system must be specified, uglyface")]
|
2011-02-22 09:39:59 +00:00
|
|
|
|
public List<int> SystemIds { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|