示例#1
0
        public static bool UpdateProductOrderBL(Entities.ProductOrder updateorder) //method to do validations for update product order
        {
            bool orderUpdated = false;

            try
            {
                if (ValidateProductOrder(updateorder))
                {
                    ProductOrderDAL productorderDAL = new ProductOrderDAL();
                    orderUpdated = productorderDAL.UpdateProductOrderDAL(updateorder);
                }
            }
            catch (Exception ex)
            {
                throw new InventoryException(ex.Message);
            }
            return(orderUpdated);
        }
示例#2
0
        public static bool UpdateProductOrderBL(Entities.ProductOrder updateorder)
        {
            bool orderUpdated = false;

            try
            {
                if (ValidateProductOrder(updateorder))
                {
                    ProductOrderDAL productorderDAL = new ProductOrderDAL();
                    orderUpdated = productorderDAL.UpdateProductOrderDAL(updateorder);
                }
            }
            catch (SystemException ex)
            {
                throw new Exception(ex.Message);
            }
            return(orderUpdated);
        }