Permalink
Browse files

#186 Max string length for seat name and description. Only non-negat…

…ive values for price and quantity.
  • Loading branch information...
jdom committed May 15, 2012
1 parent 9789b21 commit 9fa3c88c61a5b7a0c1b1cfd94c0589e54c915fbe
Showing with 4 additions and 0 deletions.
  1. +4 −0 source/Conference/Conference/SeatType.cs
@@ -26,13 +26,17 @@ public SeatType()
public Guid Id { get; set; }
[Required(AllowEmptyStrings = false)]
+ [StringLength(70, MinimumLength = 2)]
public string Name { get; set; }
[Required(AllowEmptyStrings = false)]
+ [StringLength(250)]
public string Description { get; set; }
+ [Range(0, 100000)]
public int Quantity { get; set; }
+ [Range(0, 50000)]
public decimal Price { get; set; }
}
}

0 comments on commit 9fa3c88

Please sign in to comment.