public Address AddOrUpdateAddress(Address existingAddress, AddressModel newOrUpdatedAddress)
        {
            if (existingAddress is null)
            {
                return(newOrUpdatedAddress.ToDomain());
            }

            context.Entry(existingAddress).CurrentValues.SetValues(newOrUpdatedAddress);
            return(existingAddress);
        }
 /// <summary>
 /// 获得订单
 /// </summary>
 /// <param name="orderId">订单Id</param>
 /// <returns>订单</returns>
 public void Update(Order order)
 {
     _context.Entry(order).State = EntityState.Modified;
 }