Remove [Required] from the Order model to fix a test failure

This commit is contained in:
ianhong 2015-03-04 16:30:55 -08:00
parent 5f95406fd0
commit c2f4d13392
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,6 @@ namespace MusicStore.Models
public System.DateTime OrderDate { get; set; }
[BindNever]
[Required]
[ScaffoldColumn(false)]
public string Username { get; set; }

View File

@ -15,6 +15,8 @@
{
@Html.AntiForgeryToken()
<h2>Address And Payment</h2>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<fieldset>
<legend>Shipping Information</legend>