public IQueryable <ClaimedStandard> BySolution(string solutionId)
        {
            var claimedStds = _datastore.BySolution(solutionId);

            claimedStds.ToList().ForEach(cs => _validator.ValidateAndThrow(cs));
            return(_filter.Filter(claimedStds));
        }
Exemple #2
0
        public SolutionEx BySolution(string solutionId)
        {
            return(GetInternal(() =>
            {
                var retval = new SolutionEx
                {
                    Solution = _solutionDatastore.ById(solutionId),
                    TechnicalContact = _technicalContactDatastore.BySolution(solutionId).ToList(),
                    ClaimedStandard = _claimedStandardDatastore.BySolution(solutionId).ToList(),
                    ClaimedCapability = _claimedCapabilityDatastore.BySolution(solutionId).ToList()
                };
                retval.ClaimedCapabilityStandard = retval
                                                   .ClaimedCapability
                                                   .SelectMany(cc => _claimedCapabilityStandardDatastore.ByClaimedCapability(cc.Id).ToList())
                                                   .ToList();

                return retval;
            }));
        }