public IActionResult DeleteConfirmed(string id) { var shelf = ctx.FindShelf(id); for (int i = 1; i <= shelf.FloorNumber; i++) { for (int j = 1; j <= shelf.CellNumber; j++) { var cellId = $"{id}-{i}-{j}"; ctx.DeleteCell(cellId); } } ; for (int i = 1; i <= shelf.FloorNumber; i++) { var floorId = $"{id}-{i}"; ctx.DeleteFloor(floorId); } ; ctx.DeleteShelf(shelf.ShelfId); return(RedirectToAction(nameof(ListAllShelf))); }