Added Validation for class and elite specialization
This commit is contained in:
parent
c14e676029
commit
3743093212
1 changed files with 9 additions and 4 deletions
|
@ -74,12 +74,17 @@ namespace Lieb.Models.GuildWars2
|
|||
[StringLength(60, ErrorMessage = "BuildName too long (60 character limit).")]
|
||||
public string BuildName { get; set; } = String.Empty;
|
||||
|
||||
public short Might { get; set; }
|
||||
public short Quickness { get; set; }
|
||||
public short Alacrity { get; set; }
|
||||
public short Heal { get; set; }
|
||||
public bool Might { get; set; }
|
||||
public bool Quickness { get; set; }
|
||||
public bool Alacrity { get; set; }
|
||||
public bool Heal { get; set; }
|
||||
|
||||
[Required]
|
||||
[Range(1,9, ErrorMessage ="Please select a class")]
|
||||
public GuildWars2Class Class { get; set; }
|
||||
|
||||
[Required]
|
||||
[Range(1, 90, ErrorMessage = "Please select an elite specialization")]
|
||||
public EliteSpecialization EliteSpecialization { get; set; }
|
||||
public ICollection<Equipped> EquippedRoles { get; set; } = new List<Equipped>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue