Remove [Required] from the Order model to fix a test failure
This commit is contained in:
parent
5f95406fd0
commit
c2f4d13392
|
|
@ -16,7 +16,6 @@ namespace MusicStore.Models
|
|||
public System.DateTime OrderDate { get; set; }
|
||||
|
||||
[BindNever]
|
||||
[Required]
|
||||
[ScaffoldColumn(false)]
|
||||
public string Username { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<h2>Address And Payment</h2>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
<fieldset>
|
||||
<legend>Shipping Information</legend>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue