public async Task <IActionResult> OnGetAsync(Guid?id) { if (id == null) { return(NotFound()); } BlouseModel = await _context.BlouseModel.FirstOrDefaultAsync(m => m.Id == id); if (BlouseModel == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnGetAsync(Guid?id) { ViewData["BrandId"] = new SelectList(_context.Set <Blouse>(), "Id", "Brand"); if (id == null) { return(NotFound()); } BlouseModel = await _context.BlouseModel.FindAsync(id); if (BlouseModel == null) { return(NotFound()); } return(Page()); }