public async Task <IActionResult> Edit(int id, [Bind("ID,goodsName,interBookID,number,saleID,salemanName")] InterGoodsDetail interGoodsDetail)
        {
            if (id != interGoodsDetail.ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(interGoodsDetail);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!InterGoodsDetailExists(interGoodsDetail.ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction("Index"));
            }
            return(View(interGoodsDetail));
        }
        public async Task <IActionResult> Create([Bind("ID,goodsName,interBookID,number,saleID,salemanName")] InterGoodsDetail interGoodsDetail)
        {
            if (ModelState.IsValid)
            {
                _context.Add(interGoodsDetail);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(interGoodsDetail));
        }