Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions OrderAppWithRazorPages/Models/Order.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ namespace OrderApp.Models
public class Order
{
public int OrderId { get; set; }

public DateTime Date { get; set; }

public string Name { get; set; }

public string Address { get; set; }

public string Country { get; set; }

public string Continent { get; set; }

public string Language { get; set; }

public string Phone { get; set; }
}
}
2 changes: 2 additions & 0 deletions OrderAppWithRazorPages/Models/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
public class Product
{
public int ProductId { get; set; }

public string Name { get; set; }

public decimal Price { get; set; }
}
}
4 changes: 4 additions & 0 deletions OrderAppWithRazorPages/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ namespace OrderApp.Pages
public class IndexModel : PageModel
{
public Order Order;

public List<(Product product, int quantity)> OrderDetails;

public int ShippingPercent { get; private set; }

public decimal Total { get; private set; }

public (string Message, int Step) ShippingStatus { get; private set; }

private IOrdersService _ordersService;
Expand Down