-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.cs
More file actions
26 lines (23 loc) · 716 Bytes
/
Order.cs
File metadata and controls
26 lines (23 loc) · 716 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BackendDeveloperTest
{
class Order
{
public static int currOrderId=0; // background data
public int OrderId; // background data
public int orderUserID; // background data
public string orderUserName;
public int totalcost;
public Order(int orderUserid, int cost,string orderusername) // can be with type of: null OR/AND null,
{
this.orderUserName = orderusername;
this.OrderId = currOrderId++;
this.totalcost = cost;
this.orderUserID = orderUserid;
}
}
}