Skip to content

Commit

Permalink
Merge pull request #51 from IgniteUI/dgdimitrov/fix-orders-data
Browse files Browse the repository at this point in the history
bug(*): fix orders json data, make orderdto custoemrid and shipperid …
  • Loading branch information
hanastasov authored Feb 12, 2025
2 parents 0560945 + f0067d2 commit 296ebac
Show file tree
Hide file tree
Showing 3 changed files with 15,775 additions and 14,945 deletions.
4 changes: 2 additions & 2 deletions NorthwindCRUD/Models/Contracts/IOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public interface IOrder
{
int OrderId { get; set; }

string CustomerId { get; set; }
string? CustomerId { get; set; }

int EmployeeId { get; set; }

int ShipperId { get; set; }
int? ShipperId { get; set; }

string OrderDate { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions NorthwindCRUD/Models/Dtos/OrderDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public class OrderDto : IOrder
public int OrderId { get; set; }

[Required(ErrorMessage = "CustomerId is required.")]
public string CustomerId { get; set; }
public string? CustomerId { get; set; }

public int EmployeeId { get; set; }

public int ShipperId { get; set; }
public int? ShipperId { get; set; }

[DataType(DataType.Date, ErrorMessage = "OrderDate must be a valid date.")]
public string OrderDate { get; set; }
Expand Down
Loading

0 comments on commit 296ebac

Please sign in to comment.