public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } DeskQuote = await _context.DeskQuote .Include(d => d.Delivery) .Include(d => d.Desk).FirstOrDefaultAsync(m => m.DeskQuoteID == id); if (DeskQuote == null) { return(NotFound()); } ViewData["DeliveryID"] = new SelectList(_context.Set <Delivery>(), "DeliveryID", "DeliveryID"); ViewData["DeskID"] = new SelectList(_context.Set <Desk>(), "DeskID", "DeskID"); return(Page()); }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Desk = await _context.Desk .Include(d => d.Material).FirstOrDefaultAsync(m => m.DeskID == id); if (Desk == null) { return(NotFound()); } ViewData["MaterialID"] = new SelectList(_context.Set <Material>(), "MaterialID", "MaterialID"); return(Page()); }
public IActionResult OnGet() { ViewData["DeliveryID"] = new SelectList(_context.Set <Delivery>(), "DeliveryID", "DeliveryID"); ViewData["DeskID"] = new SelectList(_context.Set <Desk>(), "DeskID", "DeskID"); return(Page()); }
public IActionResult OnGet() { ViewData["MaterialID"] = new SelectList(_context.Set <Material>(), "MaterialID", "MaterialID"); return(Page()); }