public async Task <IActionResult> Edit(int id, [Bind("ShopTransferID,Reference,TransferDate,FromShopRef,ToShopRef,StockCode,TotalQtyOut,CreatedBy,CreatedDate")] shopTransfers shopTransfers)
        {
            if (id != shopTransfers.ShopTransferID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(shopTransfers);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!shopTransfersExists(shopTransfers.ShopTransferID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(shopTransfers));
        }
        public async Task <IActionResult> Create([Bind("ShopTransferID,Reference,TransferDate,FromShopRef,ToShopRef,StockCode,TotalQtyOut,CreatedBy,CreatedDate")] shopTransfers shopTransfers)
        {
            if (ModelState.IsValid)
            {
                _context.Add(shopTransfers);
                await _context.SaveChangesAsync();

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