22 lines
727 B
C#
22 lines
727 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Web;
|
|
using VideoGameQuotes.Api;
|
|
|
|
namespace VideoGameQuotes.Web.Models {
|
|
public class EditGameModel {
|
|
public EditGameModel() {
|
|
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; }
|
|
public HttpPostedFileBase GameIcon { get; set; }
|
|
public int GameId { get; set; }
|
|
}
|
|
} |