We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fee483d commit af9858eCopy full SHA for af9858e
4 files changed
WebApiLab.BLL/DTOs/Category.cs
WebApiLab.BLL/DTOs/DTO.cs
@@ -0,0 +1,21 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using WebApiLab.DAL.Entities;
4
+
5
+namespace WebApiLab.BLL.DTO
6
+{
7
+ public record Category(int Id, string Name);
8
9
+ public record Order(int Id, DateTime OrderDate);
10
11
+ public record Product
12
+ {
13
+ public int Id { get; init; }
14
+ public string Name { get; init; }
15
+ public int UnitPrice { get; init; }
16
+ public ShipmentRegion ShipmentRegion { get; init; }
17
+ public int CategoryId { get; init; }
18
+ public Category Category { get; init; }
19
+ public List<Order> Orders { get; init; }
20
+ }
21
+}
WebApiLab.BLL/DTOs/Order.cs
WebApiLab.BLL/DTOs/Product.cs
0 commit comments