public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            DeskQuote = await _context.DeskQuote
                        .Include(d => d.Desk)
                        .Include(d => d.RushShipping).FirstOrDefaultAsync(m => m.DeskQuoteID == id);

            if (DeskQuote == null)
            {
                return(NotFound());
            }
            ViewData["DeskID"]         = new SelectList(_context.Set <Desk>(), "DeskID", "DeskID");
            ViewData["RushShippingID"] = new SelectList(_context.Set <RushShipping>(), "RushShippingID", "RushShippingID");
            return(Page());
        }
Exemple #2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            DeskQuote = await _context.DeskQuote
                        .Include(d => d.Desk)
                        .Include(d => d.Shipping).FirstOrDefaultAsync(m => m.DeskQuoteId == id);

            if (DeskQuote == null)
            {
                return(NotFound());
            }
            ViewData["SurfaceMaterialId"] = new SelectList(_context.Set <SurfaceMaterial>(), "SurfaceMaterialId", "SurfaceMaterialName");
            ViewData["ShippingId"]        = new SelectList(_context.Set <Shipping>(), "ShippingId", "ShippingType");



            return(Page());
        }
Exemple #3
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Desk = await _context.Desk
                   .Include(d => d.SurfaceMaterial).FirstOrDefaultAsync(m => m.DeskID == id);

            if (Desk == null)
            {
                return(NotFound());
            }
            ViewData["SurfaceMaterialID"] = new SelectList(_context.Set <SurfaceMaterial>(), "SurfaceMaterialID", "SurfaceMaterialID");
            return(Page());
        }
Exemple #4
0
 public IActionResult OnGet()
 {
     ViewData["SurfaceMaterialID"] = new SelectList(_context.Set <SurfaceMaterial>(), "SurfaceMaterialID", "SurfaceMaterialID");
     return(Page());
 }
 public IActionResult OnGet()
 {
     ViewData["SurfaceMaterialId"] = new SelectList(_context.Set <SurfaceMaterial>(), "SurfaceMaterialId", "SurfaceMaterialName");
     ViewData["ShippingId"]        = new SelectList(_context.Set <Shipping>(), "ShippingId", "ShippingType");
     return(Page());
 }