using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using WebApplication1.Models;

namespace WebApplication1.Pages
{
    public class IndexModel : PageModel
    {
        [BindProperty]
        public OrderViewModel Order { get; set; }

        public void OnGet()
        {
            if (Order == null)
            {
                Order = new OrderViewModel
                {
                    ShipCity = "City 1",
                    ShipName = "Ship 1",
                    OrderID = 1
                };

            }
        }
    }
}
