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; }
|
public System.DateTime OrderDate { get; set; }
|
||||||
|
|
||||||
[BindNever]
|
[BindNever]
|
||||||
[Required]
|
|
||||||
[ScaffoldColumn(false)]
|
[ScaffoldColumn(false)]
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
{
|
{
|
||||||
@Html.AntiForgeryToken()
|
@Html.AntiForgeryToken()
|
||||||
<h2>Address And Payment</h2>
|
<h2>Address And Payment</h2>
|
||||||
|
<hr />
|
||||||
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Shipping Information</legend>
|
<legend>Shipping Information</legend>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue