-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.cs
More file actions
39 lines (34 loc) · 1.14 KB
/
Order.cs
File metadata and controls
39 lines (34 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Order_Module_ConsoleApp
{
public class Order
{
public int Id { get; set; }
public int UserId { get; set; }
public int ItemCount { get; set; }
public float TotalPrice { get; set; }
public float PaidPrice { get; set; }
public float DiscountedPrice { get; set; }
public DateTime PaidDate { get; set; }
public DateTime OrderDate { get; set; }
public string Status { get; set; }
public string Notes { get; set; }
public Order(int id, int userId, int itemCount, float totalPrice, float paidPrice, float discountedPrice, DateTime paidDate, DateTime orderDate, string status, string notes)
{
UserId = userId;
ItemCount = itemCount;
TotalPrice = totalPrice;
PaidPrice = paidPrice;
DiscountedPrice = discountedPrice;
PaidDate = paidDate;
OrderDate = orderDate;
Status = status;
Notes = notes;
Id = id;
}
}
}