Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Dress = await _context.Dress.FirstOrDefaultAsync(m => m.ID == id);

            if (Dress == null)
            {
                return(NotFound());
            }
            ViewData["StoreID"] = new SelectList(_context.Set <Store>(), "ID", "StoreName");

            return(Page());
        }
 public IActionResult OnGet()
 {
     ViewData["StoreID"] = new SelectList(_context.Set <Store>(), "ID", "StoreName");
     return(Page());
 }