public async Task <ActionResult <Vendor_Account> > PostVendor_Account(Vendor_Account vendor_Account)
        {
            _context.VendorAccountTable.Add(vendor_Account);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetVendor_Account", new { id = vendor_Account.ID }, vendor_Account));
        }
        public async Task <IActionResult> PutVendor_Account(int id, Vendor_Account vendor_Account)
        {
            if (id != vendor_Account.ID)
            {
                return(BadRequest());
            }

            _context.Entry(vendor_Account).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Vendor_AccountExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }