Ejemplo n.º 1
0
        public static void Insert(Order order)
        {
            if (order == null)
            {
                throw new ArgumentException("Order information was not provided");
            }

            var query = SqlQueryGeneration.InsertOrder(order);

            try
            {
                _sqlManager.InsertOrder(query);
            }
            catch (SqlException e)
            {
                //ToDo: Log Exception
                throw new Exception("Failed to insert Order", e);
            }
        }