コード例 #1
0
        /// <summary>
        /// Updates the trading order state by key.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="status">The status.</param>
        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
        public bool UpdateTradingOrderStateByKey(Guid key, TradingOrderStatus status)
        {
            try
            {
                using (var controller = new TradingOrderAccessController())
                {
                    return(controller.UpdateTradingOrderStateByKey(key, status));
                }
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
        /// <summary>
        /// Creates the trading order.
        /// </summary>
        /// <param name="order">The order.</param>
        public void CreateTradingOrder(ITradingOrder order)
        {
            try
            {
                using (var controller = new TradingOrderAccessController())
                {
                    controller.CreateTradingOrder(order);
                }
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }