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)); }
public override async Task <IEnumerable <ValidationResult> > GetErrorsAsync() { CurrentOrderItem = await _orderItemDataProxy.GetByIDAsync(_orderItemID); return(await GetRules().GetValidationResultsAsync()); }