public async Task <IActionResult> CreateShipMethod([FromBody] Purchasing.ShipMethod value)
        {
            _db.Purchasing_ShipMethod.Add(value);
            await _db.SaveChangesAsync();

            return(Ok(value));
        }
        public async Task <IActionResult> EditShipMethod(int shipMethodID, [FromBody] Purchasing.ShipMethod value)
        {
            var existing = await _db.Purchasing_ShipMethod.FirstOrDefaultAsync(x => x.ShipMethodID == shipMethodID);

            if (existing == null)
            {
                return(NotFound());
            }

            existing.ShipMethodID = value.ShipMethodID;
            existing.Name         = value.Name;
            existing.ShipBase     = value.ShipBase;
            existing.ShipRate     = value.ShipRate;
            existing.rowguid      = value.rowguid;
            existing.ModifiedDate = value.ModifiedDate;

            _db.Purchasing_ShipMethod.Update(existing);
            await _db.SaveChangesAsync();

            return(NoContent());
        }