示例#1
0
        public static bool AddProductOrderDL(Entities.ProductOrder order, List <Entities.ProductOrder> orderDetails) //method to do validations for add product order method
        {
            bool ProductorderAdded = false;

            try
            {
                if (ValidateProductOrder(order))
                {
                    ProductOrderDAL productorderDAL = new ProductOrderDAL();
                    ProductorderAdded = productorderDAL.AddProductOrderDAL(order, orderDetails);
                }
            }
            catch (Exception ex)
            {
                throw new InventoryException(ex.Message);
            }
            return(ProductorderAdded);
        }
示例#2
0
        public static bool AddProductOrderDL(Entities.ProductOrder order, List <Entities.ProductOrder> orderDetails)
        {
            bool ProductorderAdded = false;

            try
            {
                if (ValidateProductOrder(order))
                {
                    ProductOrderDAL productorderDAL = new ProductOrderDAL();
                    ProductorderAdded = productorderDAL.AddProductOrderDAL(order, orderDetails);
                }
            }
            catch (SystemException ex)
            {
                throw new Exception(ex.Message);
            }
            return(ProductorderAdded);
        }