public async Task <IActionResult> Edit(int id, [Bind("ShelfId,Rack,Shelf,SubShelf")] FegbstorageLocation fegbstorageLocation)
        {
            if (id != fegbstorageLocation.ShelfId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(fegbstorageLocation);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FegbstorageLocationExists(fegbstorageLocation.ShelfId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(fegbstorageLocation));
        }
        public async Task <IActionResult> Create([Bind("ShelfId,Rack,Shelf,SubShelf")] FegbstorageLocation fegbstorageLocation)
        {
            if (ModelState.IsValid)
            {
                _context.Add(fegbstorageLocation);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(fegbstorageLocation));
        }