Beispiel #1
0
 public override IEnumerable <ValidationResult> GetErrors()
 {
     CurrentOrderItem = _orderItemDataProxy.GetByID(_orderItemID);
     foreach (var error in GetRules().GetValidationResults())
     {
         yield return(error);
     }
 }
        public override IEnumerable <ValidationResult> GetErrors()
        {
            CurrentOrderItem = _orderItemDataProxy.GetByID(_orderItemID);

            foreach (var error in GetRules().GetBusinessRulesResults())
            {
                yield return(error);
            }

            foreach (var error in _inventoryService.DecrementQuantityOnHandCommand(CurrentOrderItem.ProductID, CurrentOrderItem.Quantity).GetErrors())
            {
                yield return(error);
            }
        }