public IActionResult OnGet() { ViewData["DeliveryOptionId"] = new SelectList(_context.Set <DeliveryOption>(), "DeliveryOptionId", "DeliveryName"); ViewData["DesktopMaterialId"] = new SelectList(_context.Set <DesktopMaterial>(), "DesktopMaterialId", "MaterialName"); return(Page()); }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } DeskQuote = await _context.DeskQuote .Include(d => d.DeliveryOption) .Include(d => d.Desk).FirstOrDefaultAsync(m => m.DeskQuoteId == id); if (DeskQuote == null) { return(NotFound()); } ViewData["DeliveryOptionId"] = new SelectList(_context.Set <DeliveryOption>(), "DeliveryOptionId", "DeliveryName"); ViewData["DesktopMaterialId"] = new SelectList(_context.Set <DesktopMaterial>(), "DesktopMaterialId", "MaterialName"); return(Page()); }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } ViewData["ShippingTypeId"] = new SelectList(_context.Set <Shipping>(), "ShippingId", "ShippingName"); ViewData["DesktopMaterialId"] = new SelectList(_context.Set <DesktopMaterial>(), "DesktopMaterialId", "DesktopMaterialName"); DeskQuote = await _context.DeskQuote .Include(d => d.Desk) .Include(d => d.Desk.DesktopMaterial) .Include(d => d.ShippingType).FirstOrDefaultAsync(m => m.DeskQuoteId == id); if (DeskQuote == null) { return(NotFound()); } ViewData["DeskId"] = new SelectList(_context.Set <Desk>(), "DeskId", "DeskId"); return(Page()); }
public IActionResult OnGet() { ViewData["ShippingTypeId"] = new SelectList(_context.Set <Shipping>(), "ShippingId", "ShippingName"); ViewData["DesktopMaterialId"] = new SelectList(_context.Set <DesktopMaterial>(), "DesktopMaterialId", "DesktopMaterialName"); return(Page()); }