internal int Save() { this.Quantity = OrderType.Equals(OrderTypeEnum.Export) ? this.Quantity * (-1) : this.Quantity; if (!validator.OutOfStockValidator(this)) { throw new Exception("Product is out of stock"); } return(dao.saveOrder(this)); }