Skip to content

Commit 9a1a216

Browse files
make OrderDto.ShipperId nullable
1 parent 74744d7 commit 9a1a216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NorthwindCRUD/Models/Dtos/OrderDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class OrderDto : IOrder
1515
public int EmployeeId { get; set; }
1616

1717
[Range(1, int.MaxValue, ErrorMessage = "ShipperId must be a valid shipper ID.")]
18-
public int ShipperId { get; set; }
18+
public int? ShipperId { get; set; }
1919

2020
[DataType(DataType.Date, ErrorMessage = "OrderDate must be a valid date.")]
2121
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]

0 commit comments

Comments
 (0)