BrainWare-test/Api/Models/Order.cs

45 lines
832 B
C#
Raw Permalink Normal View History

2018-06-05 16:14:15 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
2024-02-22 22:15:49 +00:00
namespace Api.Models
2018-06-05 16:14:15 +00:00
{
using System.Security.AccessControl;
public class Order
{
public int OrderId { get; set; }
public string CompanyName { get; set; }
public string Description { get; set; }
public decimal OrderTotal { get; set; }
public List<OrderProduct> OrderProducts { get; set; }
}
public class OrderProduct
{
public int OrderId { get; set; }
public int ProductId { get; set; }
public Product Product { get; set; }
public int Quantity { get; set; }
public decimal Price { get; set; }
}
public class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
}
}