Added backend skeleton, models and services

This commit is contained in:
Mguy13 2023-01-04 18:53:48 +01:00
parent f818b2d39e
commit 9e2565d110
8 changed files with 193 additions and 4 deletions

34
data/dtos/order_dto.cs Normal file
View file

@ -0,0 +1,34 @@
namespace DTO
{
using Newtonsoft.Json;
public partial class OrderDto
{
[JsonProperty("OrderId")]
public virtual long OrderId { get; set; }
[JsonProperty("Description")]
public virtual string Description { get; set; }
[JsonProperty("customer ID")]
public virtual long CustomerId { get; set; }
[JsonProperty("products")]
public virtual Product[] Products { get; set; }
}
public partial class Product
{
[JsonProperty("ProductId")]
public virtual string ProductId { get; set; }
[JsonProperty("Description")]
public virtual string Description { get; set; }
[JsonProperty("Amount")]
public virtual double Amount { get; set; }
[JsonProperty("price")]
public virtual double Price { get; set; }
}
}