Example #1
0
        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());
        }
Example #2
0
        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());
        }