BrainWare-test/Api/Models/Order.cs
Christopher J. Walker 2705f6ef77 Add .NET 8 Api
2024-02-22 17:15:49 -05:00

45 lines
832 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Api.Models
{
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; }
}
}