public async Task <IActionResult> Edit(int id, [Bind("ProdId,SizeId,ColourId,Id")] ProdSizeColourLink prodSizeColourLink)
        {
            if (id != prodSizeColourLink.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(prodSizeColourLink);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ProdSizeColourLinkExists(prodSizeColourLink.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ColourId"] = new SelectList(_context.Colour, "ColourId", "ColourName", prodSizeColourLink.ColourId);
            ViewData["ProdId"]   = new SelectList(_context.Product, "ProdId", "ProdDesc", prodSizeColourLink.ProdId);
            ViewData["SizeId"]   = new SelectList(_context.Size, "SizeId", "SizeName", prodSizeColourLink.SizeId);
            return(View(prodSizeColourLink));
        }
        public async Task <IActionResult> Create([Bind("ProdId,SizeId,ColourId,Id")] ProdSizeColourLink prodSizeColourLink)
        {
            if (ModelState.IsValid)
            {
                _context.Add(prodSizeColourLink);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ColourId"] = new SelectList(_context.Colour, "ColourId", "ColourName", prodSizeColourLink.ColourId);
            ViewData["ProdId"]   = new SelectList(_context.Product, "ProdId", "ProdDesc", prodSizeColourLink.ProdId);
            ViewData["SizeId"]   = new SelectList(_context.Size, "SizeId", "SizeName", prodSizeColourLink.SizeId);
            return(View(prodSizeColourLink));
        }