Ejemplo n.º 1
0
        public override async Task <IEnumerable <ValidationResult> > GetErrorsAsync()
        {
            CurrentOrderItem = await _orderItemDataProxy.GetByIDAsync(_orderItemID);

            var rules = await GetRules().GetBusinessRulesResultsAsync();

            var inventoryRules = await _inventoryService.DecrementQuantityOnHandCommand(CurrentOrderItem.ProductID, CurrentOrderItem.Quantity).GetErrorsAsync();

            return(rules.Concat(inventoryRules));
        }
Ejemplo n.º 2
0
        public override async Task <IEnumerable <ValidationResult> > GetErrorsAsync()
        {
            CurrentOrderItem = await _orderItemDataProxy.GetByIDAsync(_orderItemID);

            return(await GetRules().GetValidationResultsAsync());
        }